A QSemN
is a quantity semaphore, in which the available "quantity" may be signalled or waited for in arbitrary amounts.
Instances
Eq QSemN Typeable QSemNnewQSemN :: Int -> IO QSemNSource
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
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4