#2558: re-throwing an asynchronous exception throws it synchronously
---------------------------------+------------------------------------------
Reporter: simonmar | Owner: simonmar
Type: bug | Status: new
Priority: normal | Milestone: 6.12 branch
Component: Compiler | Version: 6.8.3
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Os: Unknown/Multiple
Architecture: Unknown/Multiple |
---------------------------------+------------------------------------------
Changes (by guest):
* cc: i...@isaac.cedarswampstudios.org (added)
Comment:
Replying to [comment:5 int-e]:
> throwAsync :: Exception e => e -> IO ()
> throwAsync e = do
> target <- myThreadId
> throwTo target e
nitpick: what if throwAsync is called when in blocked mode? does it need
to do `unblock (throwTo target e)` in order for the self-exception to
arrive? (or maybe the RTS already side-steps this deadlock?)
-Isaac Dupree
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2558#comment:9>
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