Hi Folks,
I committed the changes to implement threadWaitRead, threadWaitWrite and
threadDelay yesterday[1]. We're seriously considering pulling these over
into 4.04 (for patchlevel 1), but this is dependent on the changes getting
enough testing in the next week or so.
Please try it out!
Cheers,
Simon
[1] for those that don't know, these functions allow the I/O system to
implement non-blocking I/O among Haskell threads, so a Haskell thread
waiting on input, say, won't hang the whole system. The threadDelay
function allows a thread to be put to sleep for a specified period of time.
GHC's I/O system uses these primitives by default, so you don't have to do
anything to get the non-blocking behaviour.
Cheers,
Simon