Make threadWaitRead/threadWaitWrite partially useable on Windows
authorSimon Marlow <marlowsd@gmail.com>
Wed, 9 Jul 2008 11:10:08 +0000 (11:10 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 9 Jul 2008 11:10:08 +0000 (11:10 +0000)
commitea7f925de8c7bd879d20dcb9ce9dd8da9e6e8855
treeb87d4648d641727b5cc3c53143145c4b8f330699
parentf19221acd9bb285fd060ebf36d7230a33c99d652
Make threadWaitRead/threadWaitWrite partially useable on Windows

They work with -threaded by calling fdReady() in a separate thread.

"threadWaitRead 0" also works without -threaded (because we happen to
know it's virtually equivalent to "hWaitForInput stdin (-1)").
Control/Concurrent.hs
GHC/Handle.hs