lifted-base-0.2.3.0: lifted IO operations from the base library

Stabilityexperimental
MaintainerBas van Dijk <v.dijk.bas@gmail.com>
Safe HaskellTrustworthy

Control.Concurrent.QSemN.Lifted

Description

This is a wrapped version of Control.Concurrent.QSemN with types generalised from IO to all monads in MonadBase.

Synopsis

Documentation

data QSemN

A QSemN is a quantity semaphore, in which the available "quantity" may be signalled or waited for in arbitrary amounts.

Instances

newQSemN :: MonadBase IO m => Int -> m QSemNSource

Generalized version of newQSemN.

waitQSemN :: MonadBase IO m => QSemN -> Int -> m ()Source

Generalized version of waitQSemN.

signalQSemN :: MonadBase IO m => QSemN -> Int -> m ()Source

Generalized version of signalQSemN.