stm-io-hooks-0.1.0: An STM monad with IO hooks

Portabilitynon-portable (requires STM)
Stabilityexperimental
MaintainerPeter Robinson <robinson@ecs.tuwien.ac.at>

Control.Concurrent.AdvSTM.TVar

Contents

Description

 

Synopsis

TVars

data TVar a Source

newTVar :: MonadAdvSTM m => a -> m (TVar a)Source

See newTVar

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.