distributed-process-0.6.6: Cloud Haskell: Erlang-style concurrency in Haskell

Safe HaskellNone
LanguageHaskell98

Control.Distributed.Process.Internal.StrictMVar

Description

Like Control.Concurrent.MVar.Strict but reduce to HNF, not NF

Documentation

newtype StrictMVar a #

Constructors

StrictMVar (MVar a) 

newMVar :: a -> IO (StrictMVar a) #

putMVar :: StrictMVar a -> a -> IO () #

withMVar :: StrictMVar a -> (a -> IO b) -> IO b #

modifyMVar_ :: StrictMVar a -> (a -> IO a) -> IO () #

modifyMVar :: StrictMVar a -> (a -> IO (a, b)) -> IO b #

modifyMVarMasked :: StrictMVar a -> (a -> IO (a, b)) -> IO b #

mkWeakMVar :: StrictMVar a -> IO () -> IO (Weak (StrictMVar a)) #