patch applied (packages/base): add forkIOWithUnmask, forkOnIOWithUnmask; deprecate forkIOUnmasked

Simon Marlow marlowsd at gmail.com
Tue Mar 29 17:31:39 CEST 2011


Tue Mar 29 06:56:39 PDT 2011  Simon Marlow <marlowsd at gmail.com>
  * add forkIOWithUnmask, forkOnIOWithUnmask; deprecate forkIOUnmasked
      
  With forkIOUnmasked it wasn't possible to reliably set up an exception
  handler in the child thread, because exceptions were immediately
  unmasked.
  
  forkIOWithUnmask   ::        ((forall a . IO a -> IO a) -> IO ()) -> IO ThreadId
  forkOnIOWithUnmask :: Int -> ((forall a . IO a -> IO a) -> IO ()) -> IO ThreadId

    M ./Control/Concurrent.hs -4 +7
    M ./GHC/Conc.lhs +2
    M ./GHC/Conc/Sync.lhs -4 +30

View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=packages/base;a=darcs_commitdiff;h=20110329135639-12142-7e94e61a60e9dda429c417f78376a525b2ae5ec1.gz



More information about the Cvs-libraries mailing list