
Joey Adams wrote a request a year or so ago to add forkOSUnmasked to Control.Concurrent -- | Like 'forkIOWithUnmask', but the child thread is a bound thread, as with 'forkOS'. forkOSWithUnmask :: ((forall a . IO a -> IO a) -> IO ()) -> IO ThreadId forkOSWithUnmask io = forkOS (io unsafeUnmask) http://www.haskell.org/pipermail/libraries/2013-June/020271.html but it received no discussion. (He didn't formally open a discussion period though). It has languished as a GHC trac ticket for a year now. https://ghc.haskell.org/trac/ghc/ticket/8010 Now that we do not have block there are situations where you can need this. I'm opening this up for bikeshedding. Thoughts? Discussion period: 2 weeks. -Edward

On Tue, Aug 19, 2014 at 3:24 PM, Edward Kmett
Joey Adams wrote a request a year or so ago to add forkOSUnmasked to Control.Concurrent
-- | Like 'forkIOWithUnmask', but the child thread is a bound thread, as with 'forkOS'. forkOSWithUnmask :: ((forall a . IO a -> IO a) -> IO ()) -> IO ThreadId forkOSWithUnmask io = forkOS (io unsafeUnmask)
http://www.haskell.org/pipermail/libraries/2013-June/020271.html
but it received no discussion. (He didn't formally open a discussion period though).
It has languished as a GHC trac ticket for a year now.
https://ghc.haskell.org/trac/ghc/ticket/8010
Now that we do not have block there are situations where you can need this.
I'm opening this up for bikeshedding.
Thoughts?
Discussion period: 2 weeks.
-Edward
I see no reason not to including it. +1 from me, though I can't say I've personally needed this function. No opinion on the color of the bikeshed. Michael
participants (3)
-
Edward Kmett
-
John Wiegley
-
Michael Snoyman