base-io-access-0.4.0.0: The IO functions included in base delimited into small, composable classes

Safe HaskellSafe-Inferred
LanguageHaskell2010

Access.Control.Concurrent.QSem

Documentation

class Access io => QSemAccess io where Source

Methods

newQSem' :: Int -> io QSem Source

Build a new QSem with a supplied initial quantity. The initial quantity must be at least 0.

waitQSem' :: QSem -> io () Source

Wait for a unit to become available

signalQSem' :: QSem -> io () Source

Signal that a unit of the QSem is available

Instances