Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Access.Control.Concurrent.QSem
Documentation
module Control.Concurrent.QSem
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