[GHC] #1049: A means of testing whether code is in blocked or
unblocked mode
GHC
trac at galois.com
Wed Dec 13 10:22:43 EST 2006
#1049: A means of testing whether code is in blocked or unblocked mode
---------------------------------+------------------------------------------
Reporter: ChrisKuklewicz | Owner:
Type: feature request | Status: new
Priority: low | Milestone:
Component: libraries/base | Version: 6.6
Severity: normal | Keywords: concurrency
Difficulty: Moderate (1 day) | Testcase:
Architecture: Multiple | Os: Multiple
---------------------------------+------------------------------------------
There is currently no way for code, e.g. in a library, to test whether it
is running in a blocked or unblocked state. The only uses I have for this
is to implement work arounds for the problem with throwTo & block (ticket
1047) or to write forkInheritIO in terms of forkIO and forkBlockedIO (from
ticket 1048).
something like:
areExceptionsBlocked :: IO Bool -- True in scope of block, false in scope
of unblock
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1049>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list