Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
module Control.Concurrent.QSemN
class Access io => QSemNAccess io where Source
newQSemN' :: Int -> io QSemN Source
Build a new QSemN
with a supplied initial quantity.
The initial quantity must be at least 0.
waitQSemN' :: QSemN -> Int -> io () Source
Wait for the specified quantity to become available
signalQSemN' :: QSemN -> Int -> io () Source
Signal that a given quantity is now available from the QSemN
.