diff options
author | waker <wakeroid@gmail.com> | 2009-08-28 21:49:53 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2009-08-28 21:49:53 +0200 |
commit | 4c41a6c6c9accea5854755bbb0f1a3476d31f8b2 (patch) | |
tree | 90438179ed3d0a7003f6756f01aafad8d22accac /threading.h | |
parent | 85e4f2aeaacb721aeabbcf1154b135985dc4b3b1 (diff) |
added pthread_join support
Diffstat (limited to 'threading.h')
-rw-r--r-- | threading.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/threading.h b/threading.h index cb71b933..f899e73f 100644 --- a/threading.h +++ b/threading.h @@ -20,7 +20,11 @@ #include <stdint.h> -void thread_start (void (*fn)(uintptr_t ctx), uintptr_t ctx); +int +thread_start (void (*fn)(uintptr_t ctx), uintptr_t ctx); + +int +thread_join (int tid); uintptr_t mutex_create (void); void mutex_free (uintptr_t mtx); |