distributed-process-extras-0.2.1.1: Cloud Haskell Extras

Safe HaskellNone
LanguageHaskell98

Control.Concurrent.Utils

Documentation

class Exclusive a where Source

Methods

new :: IO a Source

acquire :: MonadIO m => a -> m () Source

release :: MonadIO m => a -> m () Source

Instances

class Synchronised e m where Source

Minimal complete definition

synchronised

Methods

synchronised :: (Exclusive e, Monad m) => e -> m b -> m b Source

synchronized :: (Exclusive e, Monad m) => e -> m b -> m b Source

withLock :: Exclusive e => e -> IO a -> IO a Source