diff options
Diffstat (limited to 'threading.h')
-rw-r--r-- | threading.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/threading.h b/threading.h new file mode 100644 index 00000000..6b2b9237 --- /dev/null +++ b/threading.h @@ -0,0 +1,13 @@ +#ifndef __THREADING_H +#define __THREADING_H + +#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); + +#endif + |