[project @ 2003-12-22 12:23:35 by simonmar]
authorsimonmar <unknown>
Mon, 22 Dec 2003 12:23:35 +0000 (12:23 +0000)
committersimonmar <unknown>
Mon, 22 Dec 2003 12:23:35 +0000 (12:23 +0000)
commit0870508f48e629ca598451e4f5cde2c1ae285242
treeb89680db173407f4f950b59531b567de3ab30e90
parentc753d4795463c63ae8471155e8a5edd00d83645d
[project @ 2003-12-22 12:23:35 by simonmar]
- 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).
GHC/IO.hs