From 63253d8feb501c19ef09194a6da407a8c331cfad Mon Sep 17 00:00:00 2001 From: Owen Shepherd Date: Wed, 22 Aug 2012 23:21:45 +0100 Subject: [PATCH] call_once: inline definition in threads.h (available when _PDCLIB_ONCE_FLAG_IS_DONE is defined): had sense of conditional wrong way around --- includes/threads.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/threads.h b/includes/threads.h index 4549883..0af707e 100644 --- a/includes/threads.h +++ b/includes/threads.h @@ -28,7 +28,7 @@ enum { #if defined(_PDCLIB_ONCE_FLAG_IS_DONE) static inline void call_once(once_flag *flag, void (*func)(void)) { - if(_PDCLIB_ONCE_FLAG_IS_DONE(flag)) { + if(!_PDCLIB_ONCE_FLAG_IS_DONE(flag)) { _PDCLIB_call_once(flag, func); } } -- 2.40.0