mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 22:51:50 +03:00
Fix thd_join on win64
This commit is contained in:
parent
1f6d77e1f6
commit
999e1b5cc7
1 changed files with 5 additions and 2 deletions
|
|
@ -14,8 +14,11 @@ void
|
|||
thd_join(thd_t thd, void **ret)
|
||||
{
|
||||
|
||||
if (WaitForSingleObject(thd, INFINITE) == WAIT_OBJECT_0 && ret)
|
||||
GetExitCodeThread(thd, (LPDWORD) ret);
|
||||
if (WaitForSingleObject(thd, INFINITE) == WAIT_OBJECT_0 && ret) {
|
||||
DWORD exit_code;
|
||||
GetExitCodeThread(thd, (LPDWORD) &exit_code);
|
||||
*ret = (void *)(uintptr_t)exit_code;
|
||||
}
|
||||
}
|
||||
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue