From 0c53200e8e30b3d8417bfb7c4aea62e25c80b899 Mon Sep 17 00:00:00 2001 From: Ron Koenderink Date: Sat, 10 Jun 2006 03:57:50 +0000 Subject: [PATCH] (empth_wait_for_signal) [_WIN32]: Add thread block for the main thread, otherwise the main thread blocks all others. --- src/lib/empthread/ntthread.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/empthread/ntthread.c b/src/lib/empthread/ntthread.c index b8228f06..9b2cce43 100644 --- a/src/lib/empthread/ntthread.c +++ b/src/lib/empthread/ntthread.c @@ -589,6 +589,8 @@ empth_request_shutdown(void) int empth_wait_for_signal(void) { + loc_BlockThisThread(); + /* Get the MUTEX semaphore, wait the number of MS */ WaitForSingleObject(hShutdownEvent, INFINITE);