From 98250f2300049a0ffc17768e9988cb97bf81c9f2 Mon Sep 17 00:00:00 2001 From: Ron Koenderink Date: Thu, 18 Jan 2007 01:05:19 +0000 Subject: [PATCH] (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(). --- src/lib/empthread/ntthread.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/empthread/ntthread.c b/src/lib/empthread/ntthread.c index eb002b2e..0909b206 100644 --- a/src/lib/empthread/ntthread.c +++ b/src/lib/empthread/ntthread.c @@ -641,10 +641,7 @@ int empth_wait_for_signal(void) { loc_BlockThisThread(); - - WaitForSingleObject(hShutdownEvent, INFINITE); - - loc_RunThisThread(NULL); + loc_RunThisThread(hShutdownEvent); return 0; }