aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-03-17 20:22:25 -0700
committerChristian Cunningham <cc@localhost>2022-03-17 20:22:25 -0700
commitcfb195c2c02db258b82414b7e10fd89dc12f1b18 (patch)
tree5c37eec5da12ad1a4b4e99cfbcf87679540a1d2b /include
parent51fce9b7a95155347e047f64cac418d895f82fd5 (diff)
Added Semaphore Struct
Diffstat (limited to 'include')
-rw-r--r--include/util/lock.h4
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);