Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
64568 commits behind the upstream repository.
Simon Marlow's avatar
Simon Marlow authored
While fiddling around with concurrency & exceptions this afternoon, I
realised an important property of raiseInThread: it is synchronous.
The exception is raised immediately, and doesn't sit in some queue
somewhere waiting to be raised at a later date.

This is important if you have eg. two threads that can kill each
other.  We can guarantee that only one of the threads gets to kill the
other, under no circumstances can there be two killThreads fired in
opposite directions at the same time.

Documented this.
6e487969
History