(empth_wait_for_signal) [_WIN32]: Add thread block for the main thread,
otherwise the main thread blocks all others.
This commit is contained in:
parent
0864c1fdb3
commit
0c53200e8e
1 changed files with 2 additions and 0 deletions
|
@ -589,6 +589,8 @@ empth_request_shutdown(void)
|
||||||
int
|
int
|
||||||
empth_wait_for_signal(void)
|
empth_wait_for_signal(void)
|
||||||
{
|
{
|
||||||
|
loc_BlockThisThread();
|
||||||
|
|
||||||
/* Get the MUTEX semaphore, wait the number of MS */
|
/* Get the MUTEX semaphore, wait the number of MS */
|
||||||
WaitForSingleObject(hShutdownEvent, INFINITE);
|
WaitForSingleObject(hShutdownEvent, INFINITE);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue