Ganeti.Utils.MVarLock
Description
Utility functions for using MVars as simple locks.
newtype Lock Source #
Constructors
newLock :: MonadBase IO m => m Lock Source #
withLock :: MonadBaseControl IO m => Lock -> m a -> m a Source #