(empth_wait_for_signal) [WIN32]: Simplify empth_wait_for_signal()
by combined the waiting for hShutdownEvent and hThreadMutex using the optional parmeter added to loc_RunThisThread().
This commit is contained in:
parent
94267b2fe4
commit
98250f2300
1 changed files with 1 additions and 4 deletions
|
@ -641,10 +641,7 @@ int
|
||||||
empth_wait_for_signal(void)
|
empth_wait_for_signal(void)
|
||||||
{
|
{
|
||||||
loc_BlockThisThread();
|
loc_BlockThisThread();
|
||||||
|
loc_RunThisThread(hShutdownEvent);
|
||||||
WaitForSingleObject(hShutdownEvent, INFINITE);
|
|
||||||
|
|
||||||
loc_RunThisThread(NULL);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue