Proposal: Add forkOSUnmasked to Control.Concurrent

Michael Snoyman michael at snoyman.com
Tue Aug 19 18:54:33 UTC 2014


On Tue, Aug 19, 2014 at 3:24 PM, Edward Kmett <ekmett at gmail.com> wrote:

> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20140819/e971177b/attachment.html>


More information about the Libraries mailing list