mirror of
https://github.com/git/git.git
synced 2026-01-11 13:23:12 +09:00
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 <gfunni234@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
9a2fb147f2
commit
42aa7603aa
@ -34,7 +34,7 @@ typedef int pthread_mutexattr_t;
|
||||
|
||||
#define pthread_cond_t CONDITION_VARIABLE
|
||||
|
||||
#define pthread_cond_init(a,b) InitializeConditionVariable((a))
|
||||
#define pthread_cond_init(a,b) return_0((InitializeConditionVariable((a)), 0))
|
||||
#define pthread_cond_destroy(a) do {} while (0)
|
||||
#define pthread_cond_wait(a,b) return_0(SleepConditionVariableCS((a), (b), INFINITE))
|
||||
#define pthread_cond_signal WakeConditionVariable
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user