Skip to content

Commit 643a9b7

Browse files
committed
win32: pthread_cond_wait should return a value
This value is not checked, but it must return to match POSIX Signed-off-by: Greg Funni <gfunni234@gmail.com>
1 parent 9a2fb14 commit 643a9b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

compat/win32/pthread.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ typedef int pthread_mutexattr_t;
3434

3535
#define pthread_cond_t CONDITION_VARIABLE
3636

37-
#define pthread_cond_init(a,b) InitializeConditionVariable((a))
37+
#define pthread_cond_init(a,b) return_0((InitializeConditionVariable((a)), 0))
3838
#define pthread_cond_destroy(a) do {} while (0)
3939
#define pthread_cond_wait(a,b) return_0(SleepConditionVariableCS((a), (b), INFINITE))
4040
#define pthread_cond_signal WakeConditionVariable

0 commit comments

Comments
 (0)