(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:
Ron Koenderink 2007-01-18 01:05:19 +00:00
parent 94267b2fe4
commit 98250f2300

View file

@ -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;
} }