simonmar 2003/12/22 04:23:36 PST
Modified files:
libraries/base/GHC IO.hs
Log:
- Fix hGetBuf & hGetBufNonBlocking. There were various bugs in these
two functions, so I did a complete rewrite (again). They are quite
hard to get right it seems, so I've put together a test case
(shortly to be added to the test suite).
- Change to the semantics of hWaitForInput: when given a negative
time argument, this function will wait indefinitely for input to
arrive. It will wait in a thread-friendly way, unlike when the
time argument is positive. The docs now admit that hWaitForInput
is buggy when given a positive time value.
hWaitForInput h (-1) is now the approved way to wait for input
before calling hGetBufNonBlocking.
MERGE TO STABLE (hGetBuf is broken in 6.2).
Revision Changes Path
1.20 +111 -54 fptools/libraries/base/GHC/IO.hs
_______________________________________________
Cvs-libraries mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-libraries