#4154: Deadlock in Chan module
------------------------------------------+---------------------------------
Reporter: NeilMitchell | Owner:
Type: bug | Status: closed
Priority: high | Milestone: 7.0.1
Component: libraries/base | Version: 6.12.3
Resolution: fixed | Keywords:
Testcase: | Blockedby:
Difficulty: | Os: Unknown/Multiple
Blocking: | Architecture: Unknown/Multiple
Failure: Incorrect result at runtime |
------------------------------------------+---------------------------------
Changes (by mitar):
* cc: mmi...@… (added)
Comment:
The only case where I have been using `isEmptyChan` was in my version of
non-blocking `readChan`, returning Maybe. Is it possible to define instead
of `isEmptyChan` some non-blocking version of `readChan` with
`tryTakeMVar` and `tryPutMVar`?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4154#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs