diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/schedule.h | 2 | ||||
-rw-r--r-- | include/util/mutex.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/sys/schedule.h b/include/sys/schedule.h index d03d39f..7ffe716 100644 --- a/include/sys/schedule.h +++ b/include/sys/schedule.h @@ -25,7 +25,7 @@ struct Thread { void* mptr; unsigned long offset; unsigned char old_priority; - unsigned char c_reserved; + unsigned char highest_mutex; unsigned short s_reserved; }; diff --git a/include/util/mutex.h b/include/util/mutex.h index a52e62e..cef4c60 100644 --- a/include/util/mutex.h +++ b/include/util/mutex.h @@ -20,14 +20,14 @@ struct Mutex { struct MutexManager { struct Queue free; - struct Queue used; + unsigned long used_mutexes; }; void mutex_init(void); void uart_mutexes(void); struct Mutex* create_mutex(void* addr); unsigned char delete_mutex(struct Mutex* m); -void lock_mutex(struct Mutex* m); +unsigned char lock_mutex(struct Mutex* m); void unlock_mutex(struct Mutex* m); #endif |