mirror of https://github.com/git/git.git
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:
commit
039e5a0b70
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue