X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=libthreads.h;h=8033a12dc053fe02a223b158934722331da96e8d;hb=e60d8c23d30a0dfe66b8426f7f2ecf576e812028;hp=4cf6ad352da0a47cd582a439f957c0d57a9b6528;hpb=1a014a333a36a00eb92153540bcef9efba7fdeed;p=model-checker.git diff --git a/libthreads.h b/libthreads.h index 4cf6ad3..8033a12 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); - void user_main(void); + int user_main(int, char**); #ifdef __cplusplus }