Opened 11 years ago

Closed 11 years ago

Last modified 8 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: None/Unknown 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 11 years ago by simonmar

Resolution: fixed
Status: newclosed

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 9 years ago by simonmar

Architecture: UnknownUnknown/Multiple

comment:3 Changed 9 years ago by simonmar

Operating System: UnknownUnknown/Multiple

comment:4 Changed 8 years ago by simonmar

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