diff options
author | waker <wakeroid@gmail.com> | 2009-08-28 20:30:20 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2009-08-28 20:30:20 +0200 |
commit | f263abb8b777b61bcce7eee88716a137d0f880c3 (patch) | |
tree | 4e1b2c27affb8e9f3c27726b04b0fe9909cc919a /threading.h | |
parent | 81d1b50a3bd28099b784e5b2a14295e715a48d01 (diff) |
lastfm multithreading WIP
Diffstat (limited to 'threading.h')
-rw-r--r-- | threading.h | 7 |
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 |