From: Owen Shepherd Date: Wed, 22 Aug 2012 22:21:45 +0000 (+0100) Subject: call_once: inline definition in threads.h (available when _PDCLIB_ONCE_FLAG_IS_DONE... X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=commitdiff_plain;h=63253d8feb501c19ef09194a6da407a8c331cfad call_once: inline definition in threads.h (available when _PDCLIB_ONCE_FLAG_IS_DONE is defined): had sense of conditional wrong way around --- 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); } }