diff options
author | sof <unknown> | 2002-07-23 22:04:36 +0000 |
---|---|---|
committer | sof <unknown> | 2002-07-23 22:04:36 +0000 |
commit | 1089f6c18bc8474bfb205a9b9bd4af9dc5826f73 (patch) | |
tree | cd232c765aefbb914e9c6cf3cc9656bdd330e7b8 /libraries/base/cbits/inputReady.c | |
parent | f212d46aaa47695c99ca0f21a1ac91713268477f (diff) | |
download | haskell-1089f6c18bc8474bfb205a9b9bd4af9dc5826f73.tar.gz |
[project @ 2002-07-23 22:04:36 by sof]
inputReady(): using MsgWaitForMultipleObjects() instead of
WaitForMultipleObjects() on file handles is nicer from within a
message pump, but here it is less confusing to use the latter (and
simply just block message delivery for its duration.)
Diffstat (limited to 'libraries/base/cbits/inputReady.c')
-rw-r--r-- | libraries/base/cbits/inputReady.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libraries/base/cbits/inputReady.c b/libraries/base/cbits/inputReady.c index 5b1e005ed4..8677f26c3e 100644 --- a/libraries/base/cbits/inputReady.c +++ b/libraries/base/cbits/inputReady.c @@ -50,11 +50,10 @@ inputReady(int fd, int msecs, int isSock) DWORD rc; HANDLE hFile = (HANDLE)_get_osfhandle(fd); - rc = MsgWaitForMultipleObjects( 1, - &hFile, - FALSE, /* wait all */ - msecs, /*millisecs*/ - QS_ALLEVENTS); + rc = WaitForMultipleObjects( 1, + &hFile, + TRUE, /* wait all */ + msecs); /*millisecs*/ /* 1 => Input ready, 0 => not ready, -1 => error */ switch (rc) { |