X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fthreads.h;h=0af707e6ee933990b038a4fde441ffca200f07ba;hb=008908f7a61acf9df1248c005378a3c4b4393547;hp=4549883cd5e2463022e21734ef94e5029f6e566a;hpb=71138f702f36adace73415a67d0e2e5707a48ba2;p=pdclib 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); } }