summaryrefslogtreecommitdiff
path: root/threading.h
diff options
context:
space:
mode:
Diffstat (limited to 'threading.h')
-rw-r--r--threading.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/threading.h b/threading.h
index 824432c1..cb71b933 100644
--- a/threading.h
+++ b/threading.h
@@ -21,10 +21,17 @@
#include <stdint.h>
void thread_start (void (*fn)(uintptr_t ctx), uintptr_t ctx);
+
uintptr_t mutex_create (void);
void mutex_free (uintptr_t mtx);
int mutex_lock (uintptr_t mtx);
int mutex_unlock (uintptr_t mtx);
+uintptr_t cond_create (void);
+void cond_free (uintptr_t cond);
+int cond_wait (uintptr_t cond, uintptr_t mutex);
+int cond_signal (uintptr_t cond);
+int cond_broadcast (uintptr_t cond);
+
#endif