stm-io-hooks-0.5.4: An STM monad with IO hooksSource codeContentsIndex
Control.Concurrent.AdvSTM.TVar
Portabilitynon-portable (requires STM)
Stabilityexperimental
MaintainerPeter Robinson <robinson@ecs.tuwien.ac.at>
Contents
TVars
Description
Synopsis
data TVar a
newTVar :: MonadAdvSTM m => a -> m (TVar a)
newTVarIO :: a -> IO (TVar a)
readTVar :: MonadAdvSTM m => TVar a -> m a
writeTVar :: MonadAdvSTM m => TVar a -> a -> m ()
TVars
data TVar a Source
newTVar :: MonadAdvSTM m => a -> m (TVar a)Source
See newTVar
newTVarIO :: a -> IO (TVar a)Source
See newTVarIO
readTVar :: MonadAdvSTM m => TVar a -> m aSource
Reads a value from a TVar. Blocks until the IO onCommit action(s) of the corresponding transaction are complete. See onCommit for a more detailed description of this behaviour.
writeTVar :: MonadAdvSTM m => TVar a -> a -> m ()Source
Writes a value to a TVar. Blocks until the onCommit IO-action(s) are complete. See onCommit for details.
Produced by Haddock version 2.4.2