meta-par-0.3: Provides the monad-par interface, but based on modular scheduler "mix-ins".

Safe HaskellSafe-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

type HotVar a = IORef a

modifyHotVar :: HotVar a -> (a -> (a, b)) -> IO b

modifyHotVar_ :: HotVar a -> (a -> a) -> IO ()

newHotVar :: a -> IO (HotVar a)

readHotVar :: HotVar a -> IO a

writeHotVar :: HotVar a -> a -> IO ()

writeHotVarRaw :: HotVar a -> a -> IO ()