diff options
author | Christian Cunningham <cc@localhost> | 2022-03-17 20:22:25 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-03-17 20:22:25 -0700 |
commit | cfb195c2c02db258b82414b7e10fd89dc12f1b18 (patch) | |
tree | 5c37eec5da12ad1a4b4e99cfbcf87679540a1d2b /include/util | |
parent | 51fce9b7a95155347e047f64cac418d895f82fd5 (diff) |
Added Semaphore Struct
Diffstat (limited to 'include/util')
-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); |