concurrent-0

Safe HaskellTrustworthy
LanguageHaskell2010

Concurrent.Struct.Ref

Documentation

data Ref f s Source

Instances

Eq (Ref f s) Source 

newRef :: (MonadPrim s m, Struct f) => f s -> m (Ref f s) Source

readRef :: (MonadPrim s m, Struct f) => Ref f s -> m (f s) Source

writeRef :: (MonadPrim s m, Struct f) => Ref f s -> f s -> m () Source

casRef :: (MonadPrim s m, Struct f) => Ref f s -> f s -> f s -> m (f s) Source