From a29f40e073a0308bd74f0f9803a4660aa233c3ab Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Sat, 12 Mar 2022 16:39:39 -0800 Subject: "Dynamic" Mutex Allocation --- include/util/mutex.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/util/mutex.h') diff --git a/include/util/mutex.h b/include/util/mutex.h index ab318b4..c0dd17b 100644 --- a/include/util/mutex.h +++ b/include/util/mutex.h @@ -8,6 +8,8 @@ #define CORE3_PID 4 #define FIRST_AVAIL_PID CORE3_PID+1 +#define MAX_MUTEXS 0x100 + // PID field is first so that it can be treated // as a lock struct Mutex { @@ -15,4 +17,7 @@ struct Mutex { void* addr; } __attribute__((packed, aligned(4))); +struct Mutex* create_mutex(void* addr); +unsigned char delete_mutex(struct Mutex* m); + #endif -- cgit v1.2.1