Skip to content

Commit 039e5a0

Browse files
committed
Merge branch 'sk/win32-pthread-exit-fix'
An API emulation fix. * sk/win32-pthread-exit-fix: win32: use _endthreadex to terminate threads, not ExitThread
2 parents e83d57e + 0006e2e commit 039e5a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compat/win32/pthread.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pthread_t pthread_self(void);
6666

6767
static inline void NORETURN pthread_exit(void *ret)
6868
{
69-
ExitThread((DWORD)(intptr_t)ret);
69+
_endthreadex((unsigned)(uintptr_t)ret);
7070
}
7171

7272
typedef DWORD pthread_key_t;

0 commit comments

Comments
 (0)