diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2010-06-03 22:03:27 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2010-06-03 22:03:27 +0200 |
commit | 58f1c192c2aa58d959ecb69197b2650b27f2eb7d (patch) | |
tree | 99f7cad6c22626498a443fd0187e7bbf9e9b9ce0 /include | |
parent | d1825f38cf363be594af0e566ab91eb75e4c0376 (diff) | |
download | wolfbones-58f1c192c2aa58d959ecb69197b2650b27f2eb7d.tar.gz wolfbones-58f1c192c2aa58d959ecb69197b2650b27f2eb7d.tar.bz2 |
can pass thread data now (Linux), adapted tests
Diffstat (limited to 'include')
-rw-r--r-- | include/wolf/threads/threads.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/include/wolf/threads/threads.h b/include/wolf/threads/threads.h index 73c5236..bd49fb9 100644 --- a/include/wolf/threads/threads.h +++ b/include/wolf/threads/threads.h @@ -48,9 +48,6 @@ typedef pthread_t wolf_thread_t; typedef void *( *wolf_thread_func_t )( void * ); -wolf_error_t wolf_thread_create( wolf_thread_t *thread, wolf_thread_func_t func ); -wolf_error_t wolf_thread_join( wolf_thread_t *thread ); - #endif /* HAVE_PTHREADS */ #ifdef _WIN32 @@ -65,11 +62,11 @@ typedef uintptr_t wolf_thread_t; typedef void ( *wolf_thread_func_t )( void * ); -wolf_error_t wolf_thread_create( wolf_thread_t *thread, wolf_thread_func_t func ); -wolf_error_t wolf_thread_join( wolf_thread_t *thread ); - #endif /* _WIN32 */ +wolf_error_t wolf_thread_create( wolf_thread_t *thread, wolf_thread_func_t func, void *data ); +wolf_error_t wolf_thread_join( wolf_thread_t *thread ); + #ifdef __cplusplus } #endif |