#7216: Compositional blocking on file descriptors ---------------------------------+------------------------------------------ Reporter: AndreasVoellmy | Owner: Type: feature request | Status: patch Priority: normal | Milestone: 7.8.1 Component: libraries/base | Version: 7.4.2 Keywords: | Os: Unknown/Multiple Architecture: Unknown/Multiple | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------
Comment(by AndreasVoellmy): The last patch addresses the previous comment by igloo. I made the threadWaitSTM return an IO action that unregisters interest in the file descriptor. By returning an `IO ()` value we avoid having to export the `FdKey` type and `unregsterFd` functions. I also added some haddock comments to `threadWaitReadSTM` and `threadWaitWriteSTM`. -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7216#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler _______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs