]> pd.if.org Git - pdclib.old/blobdiff - includes/threads.h
Move existing errno handling to tss_errno, to allow the POSIX platform to just use...
[pdclib.old] / includes / threads.h
index 4549883cd5e2463022e21734ef94e5029f6e566a..2e1f6faeadc908c71146722c24c377f1a3dee845 100644 (file)
@@ -28,7 +28,7 @@ enum {
 #if defined(_PDCLIB_ONCE_FLAG_IS_DONE)\r
 static inline void call_once(once_flag *flag, void (*func)(void))\r
 {\r
-       if(_PDCLIB_ONCE_FLAG_IS_DONE(flag)) {\r
+       if(!_PDCLIB_ONCE_FLAG_IS_DONE(flag)) {\r
                _PDCLIB_call_once(flag, func);\r
        }\r
 }\r
@@ -61,7 +61,7 @@ int cnd_wait(cnd_t *cond, mtx_t *mtx) _PDCLIB_nothrow;
 #if defined(_PDCLIB_THRD_T)\r
 #define _PDCLIB_THRD_HAVE_MISC\r
 typedef _PDCLIB_THRD_T         thrd_t;\r
-typedef int (*)(void*)  thrd_start_t;\r
+typedef int (*thrd_start_t)(void*);\r
 \r
 int thrd_create(thrd_t *thr, thrd_start_t func, void *arg) _PDCLIB_nothrow;\r
 thrd_t thrd_current(void) _PDCLIB_nothrow;\r