Opened 7 years ago

Closed 7 years ago

Last modified 4 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: Difficulty: Easy (less than 1 hour)
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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

  • Architecture changed from Unknown to Unknown/Multiple

comment:3 Changed 6 years ago by simonmar

  • Operating System changed from Unknown to Unknown/Multiple

comment:4 Changed 4 years ago by simonmar

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