X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=libthreads.h;h=0c02971342d06ffa903feb01b2d4daadc08754d4;hb=9b784333e1a62ed6d258e96502a5733041389c8f;hp=72cc00b8e1532606659d43814de88afe6d0697e0;hpb=eebc7e307adab5e922ec93a5a8e9d18708dc6af2;p=c11tester.git diff --git a/libthreads.h b/libthreads.h index 72cc00b8..0c029713 100644 --- a/libthreads.h +++ b/libthreads.h @@ -1,3 +1,7 @@ +/** @file libthreads.h + * @brief Basic Thread Library Functionality. + */ + #ifndef __LIBTHREADS_H__ #define __LIBTHREADS_H__ @@ -5,17 +9,16 @@ extern "C" { #endif - typedef int thread_id_t; - typedef void (*thrd_start_t)(); + typedef void (*thrd_start_t)(void *); - typedef thread_id_t thrd_t; + typedef int thrd_t; int thrd_create(thrd_t *t, thrd_start_t start_routine, void *arg); int thrd_join(thrd_t); int thrd_yield(void); thrd_t thrd_current(void); - extern void user_main(void); + void user_main(void); #ifdef __cplusplus }