From f263abb8b777b61bcce7eee88716a137d0f880c3 Mon Sep 17 00:00:00 2001 From: waker Date: Fri, 28 Aug 2009 20:30:20 +0200 Subject: lastfm multithreading WIP --- threading.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'threading.h') diff --git a/threading.h b/threading.h index 824432c1..cb71b933 100644 --- a/threading.h +++ b/threading.h @@ -21,10 +21,17 @@ #include 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 -- cgit v1.2.3