cvs commit: fptools/libraries/base/GHC Conc.lhs fptools/libraries/stm/Control/Concurrent/STM TChan.hs TMVar.hs TVar.hs

Simon Marlow simonmar at microsoft.com
Mon Dec 5 06:42:47 EST 2005


simonmar    2005/12/05 03:42:47 PST

  Modified files:
    libraries/base/GHC   Conc.lhs 
    libraries/stm/Control/Concurrent/STM TChan.hs TMVar.hs TVar.hs 
  Log:
  Add IO versions of the STM primitives that allocate new transactional variables:
  
    newTVarIO :: a -> IO (TVar a)
    newTChanIO :: IO (TChan a)
    newTMVarIO :: a -> IO (TMVar a)
  
  These can be used inside unsafePerformIO, unlike the STM versions.
  
  Revision  Changes    Path
  1.51      +10 -0     fptools/libraries/base/GHC/Conc.lhs
  1.3       +8 -0      fptools/libraries/stm/Control/Concurrent/STM/TChan.hs
  1.2       +12 -0     fptools/libraries/stm/Control/Concurrent/STM/TMVar.hs
  1.2       +2 -1      fptools/libraries/stm/Control/Concurrent/STM/TVar.hs


More information about the Cvs-libraries mailing list