Copyright | (c) 2016 Michael Walker |
---|---|
License | MIT |
Maintainer | Michael Walker <[email protected]> |
Stability | stable |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Control.Concurrent.Classy.QSem
Contents
Description
Simple quantity semaphores.
Simple Quantity Semaphores
QSem
is a quantity semaphore in which the resource is acquired
and released in units of one. It provides guaranteed FIFO ordering
for satisfying blocked waitQSem
calls.
The pattern
bracket_ qaitQSem signalSSem (...)
is safe; it never loses a unit of the resource.