mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 22:51:50 +03:00
Correctly return exit code from thd_join on Windows
This commit is contained in:
parent
26246af977
commit
17767b5f2b
1 changed files with 2 additions and 1 deletions
|
|
@ -14,7 +14,8 @@ void
|
|||
thd_join(thd_t thd, void **ret)
|
||||
{
|
||||
|
||||
WaitForSingleObject(thd, INFINITE);
|
||||
if (WaitForSingleObject(thd, INFINITE) == WAIT_OBJECT_0 && ret)
|
||||
GetExitCodeThread(thd, (LPDWORD) ret);
|
||||
}
|
||||
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue