Portability | non-portable (concurrency) |
---|---|
Stability | experimental |
Maintainer | libraries@haskell.org |
Safe Haskell | Trustworthy |
Deprecated: Control.Concurrent.QSemN will be removed in GHC 7.8. Please use an alternative, e.g. the SafeSemaphore package, instead.
Quantity semaphores in which each thread may wait for an arbitrary "amount".
General Quantity Semaphores
data QSemN
A QSemN
is a quantity semaphore, in which the available
"quantity" may be signalled or waited for in arbitrary amounts.
Build a new QSemN
with a supplied initial quantity.
The initial quantity must be at least 0.
signalQSemN :: QSemN -> Int -> IO ()
Signal that a given quantity is now available from the QSemN
.