Ticket #1049 (closed feature request: wontfix)

Opened 6 years ago

Last modified 4 years ago

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

Changed 6 years ago by igloo

  • milestone set to 6.8

Changed 6 years ago by guest

  • cc Bulat.Ziganshin@… added

Changed 6 years ago by igloo

  • status changed from new to closed
  • resolution set to wontfix

Please follow  http://www.haskell.org/haskellwiki/Library_submissions if you would like to propose this for inclusion in the libraries.

Changed 5 years ago by igloo

  • milestone changed from 6.8 branch to 6.8.2

Changed 5 years ago by simonmar

  • architecture changed from Multiple to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Multiple to Unknown/Multiple

Changed 4 years ago by simonmar

  • difficulty changed from Moderate (1 day) to Moderate (less than a day)
Note: See TracTickets for help on using tickets.