summaryrefslogtreecommitdiff
path: root/src/common/include/sched.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/include/sched.h')
-rw-r--r--src/common/include/sched.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/include/sched.h b/src/common/include/sched.h
index 0f8f8f4..1012116 100644
--- a/src/common/include/sched.h
+++ b/src/common/include/sched.h
@@ -7,6 +7,7 @@
#define MUTEX_UNLOCKED 0
//A mutex is just an uint32_t
+typedef uint32_t mutex_t;
int mutex_lock(uint32_t* mutex); //wait for mutex to be free
int mutex_lockE(uint32_t* mutex); //lock mutex only if free, returns !0 if locked, 0 if was busy