strict-mutable-base-1.1.0.0: Strict variants of mutable data types from base.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Control.Concurrent.MVar.Strict

Contents

Description

For full documentation please refer to Control.Concurrent.MVar.

Synopsis

Documentation

data MVar' a Source #

Strict (WHNF) version of MVar.

Instances

Instances details
NFData1 MVar' Source # 
Instance details

Defined in Control.Concurrent.MVar.Strict

Methods

liftRnf :: (a -> ()) -> MVar' a -> () #

NFData (MVar' a) Source # 
Instance details

Defined in Control.Concurrent.MVar.Strict

Methods

rnf :: MVar' a -> () #

Eq (MVar' a) Source # 
Instance details

Defined in Control.Concurrent.MVar.Strict

Methods

(==) :: MVar' a -> MVar' a -> Bool #

(/=) :: MVar' a -> MVar' a -> Bool #

Operations

newMVar' :: a -> IO (MVar' a) Source #

newMVar for an MVar'.

Evaluates the initial value to WHNF.

putMVar' :: MVar' a -> a -> IO () Source #

putMVar for an MVar'.

Evaluates the new value to WHNF.

swapMVar' :: MVar' a -> a -> IO a Source #

swapMVar for an MVar'.

Evaluates the new value to WHNF.

tryPutMVar' :: MVar' a -> a -> IO Bool Source #

tryPutMVar for an MVar'.

Evaluates the new value to WHNF.

withMVar' :: MVar' a -> (a -> IO b) -> IO b Source #

withMVar for an MVar'.

withMVar'Masked :: MVar' a -> (a -> IO b) -> IO b Source #

modifyMVar'_ :: MVar' a -> (a -> IO a) -> IO () Source #

modifyMVar_ for an MVar'.

Evaluates the new value to WHNF.

modifyMVar' :: MVar' a -> (a -> IO (a, b)) -> IO b Source #

modifyMVar for an MVar'.

Evaluates the new value to WHNF.

modifyMVar'Masked_ :: MVar' a -> (a -> IO a) -> IO () Source #

modifyMVarMasked_ for an MVar'.

Evaluates the new value to WHNF.

modifyMVar'Masked :: MVar' a -> (a -> IO (a, b)) -> IO b Source #

modifyMVarMasked for an MVar'.

Evaluates the new value to WHNF.

mkWeakMVar' :: MVar' a -> IO () -> IO (Weak (MVar' a)) Source #