ganeti

Safe HaskellSafe

Ganeti.Utils.MVarLock

Description

Utility functions for using MVars as simple locks.

Documentation

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

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