[GHC] #4154: Deadlock in Chan module

GHC cvs-ghc at haskell.org
Thu Nov 25 02:42:30 CET 2010


#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: mmitar@… (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


More information about the Glasgow-haskell-bugs mailing list