From cfb195c2c02db258b82414b7e10fd89dc12f1b18 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Thu, 17 Mar 2022 20:22:25 -0700 Subject: Added Semaphore Struct --- include/util/lock.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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); -- cgit v1.2.1