Safe Haskell | Safe-Infered |
---|
Control.Monad.Par.Meta.HotVar.IORef
Description
A very simple layer of abstraction for frequently modified shared
variables. This additional indirection is only present for
benchmarking IORef
operations vs. MVar
or TVar
implementations.
Documentation
modifyHotVar :: HotVar a -> (a -> (a, b)) -> IO bSource
modifyHotVar_ :: HotVar a -> (a -> a) -> IO ()Source
readHotVar :: HotVar a -> IO aSource
readHotVarRaw :: HotVar a -> IO aSource
writeHotVar :: HotVar a -> a -> IO ()Source
writeHotVarRaw :: HotVar a -> a -> IO ()Source