diff options
Diffstat (limited to 'kern/mutex.h')
-rw-r--r-- | kern/mutex.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kern/mutex.h b/kern/mutex.h index 3a74eb2f..dcbf98eb 100644 --- a/kern/mutex.h +++ b/kern/mutex.h @@ -26,11 +26,17 @@ #include <kern/assert.h> #include <kern/list.h> #include <kern/spinlock.h> +#include <kern/thread.h> #define MUTEX_UNLOCKED 0 #define MUTEX_LOCKED 1 #define MUTEX_CONTENDED 2 +struct mutex_waiter { + struct list node; + struct thread *thread; +}; + struct mutex { unsigned long state; struct spinlock lock; |