diff options
author | Tamar Christina <tamar@zhox.com> | 2019-11-02 21:41:10 +0000 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2020-07-15 16:41:02 -0400 |
commit | 84ea3d1492127442e2d416f1f576a5921186ada4 (patch) | |
tree | d923eac1c89f82a2d276784182f1cd9b2f8ed835 /rts/win32 | |
parent | 8da15a09955926c4617d3468b84b3f3ca414d48a (diff) | |
download | haskell-84ea3d1492127442e2d416f1f576a5921186ada4.tar.gz |
winio: Relaxing some constraints in io-manager.
Diffstat (limited to 'rts/win32')
-rw-r--r-- | rts/win32/AsyncWinIO.c | 2 |
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); } |