aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-08-26 22:31:52 -0700
committerChristian Cunningham <cc@localhost>2022-08-26 22:31:52 -0700
commit8b36a39774789cee66d84db9f0086af15cacc211 (patch)
treeaa0345e480b796623fc5a20de6e519a4fce0395b /include
parente36b9514b79c3f67c42c41fada2e46a5ecc3fa05 (diff)
No used mutex queue
Diffstat (limited to 'include')
-rw-r--r--include/sys/schedule.h2
-rw-r--r--include/util/mutex.h4
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