Skip to content

Commit 42aa760

Browse files
AZero13gitster
authored andcommitted
win32: pthread_cond_init should return a value
This value is not checked, but it must return to match POSIX Signed-off-by: Greg Funni <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9a2fb14 commit 42aa760

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)