diff options
author | Christian Cunningham <cc@localhost> | 2022-08-26 22:31:52 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-08-26 22:31:52 -0700 |
commit | 8b36a39774789cee66d84db9f0086af15cacc211 (patch) | |
tree | aa0345e480b796623fc5a20de6e519a4fce0395b /include/util | |
parent | e36b9514b79c3f67c42c41fada2e46a5ecc3fa05 (diff) |
No used mutex queue
Diffstat (limited to 'include/util')
-rw-r--r-- | include/util/mutex.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 |