From 58f1c192c2aa58d959ecb69197b2650b27f2eb7d Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 3 Jun 2010 22:03:27 +0200 Subject: can pass thread data now (Linux), adapted tests --- include/wolf/threads/threads.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'include') 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 -- cgit v1.2.3-54-g00ecf