(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)
|
||||
{
|
||||
loc_BlockThisThread();
|
||||
|
||||
WaitForSingleObject(hShutdownEvent, INFINITE);
|
||||
|
||||
loc_RunThisThread(NULL);
|
||||
loc_RunThisThread(hShutdownEvent);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue