diff options
-rw-r--r-- | include/util/lock.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/util/lock.h b/include/util/lock.h index da18f81..27f23c5 100644 --- a/include/util/lock.h +++ b/include/util/lock.h @@ -5,6 +5,10 @@ struct Lock { unsigned long pid; } __attribute__((packed, aligned(4))); +struct Semaphore { + unsigned long value; +} __attribute__((packed, aligned(4))); + void lock(struct Lock* l); void unlock(struct Lock* l); |