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

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

Control.Concurrent.QSem.Lifted

Description

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

Synopsis

Documentation

data QSem

A QSem is a simple quantity semaphore, in which the available "quantity" is always dealt with in units of one.

Instances

newQSem :: MonadBase IO m => Int -> m QSemSource

Generalized version of newQSem.

waitQSem :: MonadBase IO m => QSem -> m ()Source

Generalized version of waitQSem.

signalQSem :: MonadBase IO m => QSem -> m ()Source

Generalized version of signalQSem.