ganeti

Safe HaskellSafe-Infered

Ganeti.Utils.MVarLock

Description

Utility functions for using MVars as simple locks.

Documentation

newtype Lock Source

Constructors

MVarLock (MVar ()) 

newLock :: MonadBase IO m => m LockSource

withLock :: MonadBaseControl IO m => Lock -> m a -> m aSource