Ticket #1049 (closed feature request: wontfix)
A means of testing whether code is in blocked or unblocked mode
| Reported by: | ChrisKuklewicz | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 6.8.2 |
| Component: | libraries/base | Version: | 6.6 |
| Keywords: | concurrency | Cc: | Bulat.Ziganshin@… |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Difficulty: | Moderate (less than a day) | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
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
Change History
Note: See
TracTickets for help on using
tickets.
