Merge branch 'sk/win32-pthread-exit-fix'

An API emulation fix.

* sk/win32-pthread-exit-fix:
  win32: use _endthreadex to terminate threads, not ExitThread
This commit is contained in:
Junio C Hamano 2023-01-02 21:37:19 +09:00
commit 039e5a0b70
1 changed files with 1 additions and 1 deletions

View File

@ -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;