diff options
Diffstat (limited to 'unix/tclUnixNotfy.c')
-rw-r--r-- | unix/tclUnixNotfy.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/unix/tclUnixNotfy.c b/unix/tclUnixNotfy.c index ab1f160..128b080 100644 --- a/unix/tclUnixNotfy.c +++ b/unix/tclUnixNotfy.c @@ -878,9 +878,9 @@ Tcl_WaitForEvent(timePtr) } else { timeout = 0xFFFFFFFF; } - Tcl_MutexUnlock(¬ifierMutex); + Tcl_MutexUnlock(¬ifierMutex); MsgWaitForMultipleObjects(1, &tsdPtr->event, 0, timeout, 1279); - Tcl_MutexLock(¬ifierMutex); + Tcl_MutexLock(¬ifierMutex); } #else Tcl_ConditionWait(&tsdPtr->waitCV, ¬ifierMutex, timePtr); @@ -888,6 +888,7 @@ Tcl_WaitForEvent(timePtr) } tsdPtr->eventReady = 0; +#ifdef __CYGWIN__ while (PeekMessageW(&msg, NULL, 0, 0, 0)) { /* * Retrieve and dispatch the message. @@ -902,6 +903,7 @@ Tcl_WaitForEvent(timePtr) } } ResetEvent(tsdPtr->event); +#endif if (waitForFiles && tsdPtr->onList) { /* |