diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-12-16 11:08:34 +0900 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-12-16 11:08:34 +0900 |
| commit | 72154ce4147e971b59e10d79648b114481703607 (patch) | |
| tree | a7e4a971e608343e3f23da66a239ae346ff84415 | |
| parent | dbe54273a707406409fa386db5b105557b31a831 (diff) | |
| parent | 42aa7603aa752850c8ad89cca61e280dab520faf (diff) | |
| download | git-72154ce4147e971b59e10d79648b114481703607.tar.gz | |
Merge branch 'gf/win32-pthread-cond-init'
Emulation code clean-up.
* gf/win32-pthread-cond-init:
win32: pthread_cond_init should return a value
| -rw-r--r-- | compat/win32/pthread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/win32/pthread.h b/compat/win32/pthread.h index 859e1d9021..ccacc5a53b 100644 --- a/compat/win32/pthread.h +++ b/compat/win32/pthread.h @@ -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_signal WakeConditionVariable #define pthread_cond_broadcast WakeAllConditionVariable |
