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 aSource

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

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