We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e6e485 commit 19ce5acCopy full SHA for 19ce5ac
1 file changed
compat/win32/pthread.h
@@ -34,7 +34,7 @@ typedef int pthread_mutexattr_t;
34
35
#define pthread_cond_t CONDITION_VARIABLE
36
37
-#define pthread_cond_init(a,b) InitializeConditionVariable((a))
+#define pthread_cond_init(a,b) return_0((InitializeConditionVariable((a)), 0))
38
#define pthread_cond_destroy(a) do {} while (0)
39
#define pthread_cond_wait(a,b) return_0(SleepConditionVariableCS((a), (b), INFINITE))
40
#define pthread_cond_signal WakeConditionVariable
0 commit comments