summaryrefslogtreecommitdiff
path: root/rts/win32
diff options
context:
space:
mode:
authorTamar Christina <tamar@zhox.com>2019-11-02 21:41:10 +0000
committerBen Gamari <ben@smart-cactus.org>2020-07-15 16:41:02 -0400
commit84ea3d1492127442e2d416f1f576a5921186ada4 (patch)
treed923eac1c89f82a2d276784182f1cd9b2f8ed835 /rts/win32
parent8da15a09955926c4617d3468b84b3f3ca414d48a (diff)
downloadhaskell-84ea3d1492127442e2d416f1f576a5921186ada4.tar.gz
winio: Relaxing some constraints in io-manager.
Diffstat (limited to 'rts/win32')
-rw-r--r--rts/win32/AsyncWinIO.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/win32/AsyncWinIO.c b/rts/win32/AsyncWinIO.c
index 00c2fe2913..2b6a44ee39 100644
--- a/rts/win32/AsyncWinIO.c
+++ b/rts/win32/AsyncWinIO.c
@@ -306,7 +306,7 @@ void awaitAsyncRequests (bool wait)
not empty but we can't do that here. Also these locks don't guarantee
fairness, as such a request may have completed without us seeing a
timeslice in between. */
- if (wait && !outstanding_service_requests)
+ if (wait && outstanding_service_requests)
SleepConditionVariableSRW (&threadIOWait, &lock, INFINITE, 0);
ReleaseSRWLockExclusive (&lock);
}