Copyright | (c) The University of Glasgow 2001 |
---|---|
License | BSD-style (see the file libraries/base/LICENSE) |
Maintainer | libraries@haskell.org |
Stability | experimental |
Portability | non-portable (concurrency) |
Safe Haskell | Safe |
Language | Haskell2010 |
Simple quantity semaphores.
Simple Quantity Semaphores
newQSem :: Int -> IO QSem Source
Build a new QSem
with a supplied initial quantity.
The initial quantity must be at least 0.
signalQSem :: QSem -> IO () Source
Signal that a unit of the QSem
is available