Opened 10 years ago

Closed 10 years ago

Last modified 7 years ago

#972 closed bug (fixed)

hWaitForInput documentation is wrong

Reported by: jcab@… Owned by:
Priority: normal Milestone:
Component: Documentation Version: 6.6
Keywords: hWaitForInput Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


The documentation for System.IO.hWaitForInput states that "in the current implementation, (...) if t is non-zero, then all other concurrent threads are blocked until data is available"

This is not true in GHC 6.6 on Windows. Both threads forked with forkIO and forkOS continue working normally.

Most likely an oversight. Might be in more places.

Change History (4)

comment:1 Changed 10 years ago by simonmar

  • Resolution set to fixed
  • Status changed from new to closed

That part of the documentation should be prefixed with "if you're not using -threaded..." (I presume you're using -threaded because you mention forkOS).

I've fixed the docs.

comment:2 Changed 8 years ago by simonmar

  • Architecture changed from Unknown to Unknown/Multiple

comment:3 Changed 8 years ago by simonmar

  • Operating System changed from Unknown to Unknown/Multiple

comment:4 Changed 7 years ago by simonmar

  • difficulty changed from Easy (1 hr) to Easy (less than 1 hour)
Note: See TracTickets for help on using tickets.