[GHC] #8010: Add forkOSUnmasked (patch)

#8010: Add forkOSUnmasked (patch) -----------------------------+---------------------------------------------- Reporter: joeyadams | Owner: Type: feature request | Status: new Priority: normal | Component: libraries/base Version: 7.7 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Blockedby: Blocking: | Related: -----------------------------+---------------------------------------------- This patch simply adds `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) }}} I ran `sh validate`, and no new failures were introduced. I'll push it to master in a few days, unless someone objects. For GHC < 7.8, `forkOSWithUnmask` can be achieved using `forkOS` and [http://hackage.haskell.org/packages/archive/base/4.6.0.1/doc/html /Control-Exception.html#v:block block], but `block` is removed in GHC 7.8. `unsafeUnmask` can still be imported from `GHC.IO`, however. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/8010 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8010: Add forkOSUnmasked (patch) ---------------------------------+------------------------------------------ Reporter: joeyadams | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: libraries/base | Version: 7.7 Keywords: | Os: Unknown/Multiple Architecture: Unknown/Multiple | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------ Changes (by igloo): * difficulty: => Unknown Comment: Was this agreed on the libraries list? Please see http://www.haskell.org/haskellwiki/Library_submissions for details. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/8010#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8010: Add forkOSUnmasked (patch) ---------------------------------+------------------------------------------ Reporter: joeyadams | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: libraries/base | Version: 7.7 Keywords: | Os: Unknown/Multiple Architecture: Unknown/Multiple | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------ Comment(by joeyadams): Not yet. I sent a proposal: http://www.haskell.org/pipermail/libraries/2013-June/020271.html -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/8010#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC