diff options
| author | Junio C Hamano <gitster@pobox.com> | 2023-01-02 21:37:19 +0900 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-01-02 21:37:19 +0900 |
| commit | 039e5a0b701c76dce38c397853cea490d5a27373 (patch) | |
| tree | 99445163f27ed7393fb7811ef1948d4760dd4a36 | |
| parent | Merge branch 'ew/format-patch-mboxrd' (diff) | |
| parent | win32: use _endthreadex to terminate threads, not ExitThread (diff) | |
| download | git-039e5a0b701c76dce38c397853cea490d5a27373.tar.gz git-039e5a0b701c76dce38c397853cea490d5a27373.zip | |
Merge branch 'sk/win32-pthread-exit-fix'
An API emulation fix.
* sk/win32-pthread-exit-fix:
win32: use _endthreadex to terminate threads, not ExitThread
| -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 737983d00b..cc3221cb2c 100644 --- a/compat/win32/pthread.h +++ b/compat/win32/pthread.h @@ -66,7 +66,7 @@ pthread_t pthread_self(void); static inline void NORETURN pthread_exit(void *ret) { - ExitThread((DWORD)(intptr_t)ret); + _endthreadex((unsigned)(uintptr_t)ret); } typedef DWORD pthread_key_t; |
