| Portability | non-portable (concurrency) |
|---|---|
| Stability | experimental |
| Maintainer | libraries@haskell.org |
Control.Concurrent.QSem
Contents
Description
Simple quantity semaphores.
Simple Quantity Semaphores
data QSem
A QSem is a simple quantity semaphore, in which the available
"quantity" is always dealt with in units of one.
Build a new QSem with a supplied initial quantity.
The initial quantity must be at least 0.
signalQSem :: QSem -> IO ()
Signal that a unit of the QSem is available