ganeti
Safe HaskellSafe

Ganeti.Utils.MVarLock

Description

Utility functions for using MVars as simple locks.

Documentation

newtype Lock Source #

Constructors

MVarLock (MVar ()) 

newLock :: MonadBase IO m => m Lock Source #

withLock :: MonadBaseControl IO m => Lock -> m a -> m a Source #