X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fthreads.h;h=65021538c383e395fb38d5e817a80bfc95540855;hb=a55b8838b33fbdc8edea70cae7d10e3d9ef95a94;hp=0af707e6ee933990b038a4fde441ffca200f07ba;hpb=63253d8feb501c19ef09194a6da407a8c331cfad;p=pdclib.old diff --git a/includes/threads.h b/includes/threads.h index 0af707e..6502153 100644 --- a/includes/threads.h +++ b/includes/threads.h @@ -33,7 +33,7 @@ static inline void call_once(once_flag *flag, void (*func)(void)) } } #else -void call_once(once_flag *flag, void (*func)(void)) +void call_once(once_flag *flag, void (*func)(void)); #endif #if defined(_PDCLIB_MTX_T) @@ -61,7 +61,7 @@ int cnd_wait(cnd_t *cond, mtx_t *mtx) _PDCLIB_nothrow; #if defined(_PDCLIB_THRD_T) #define _PDCLIB_THRD_HAVE_MISC typedef _PDCLIB_THRD_T thrd_t; -typedef int (*)(void*) thrd_start_t; +typedef int (*thrd_start_t)(void*); int thrd_create(thrd_t *thr, thrd_start_t func, void *arg) _PDCLIB_nothrow; thrd_t thrd_current(void) _PDCLIB_nothrow;