Distribution.Client.Compat.Semaphore
data QSem #
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.
QSem
waitQSem
Defined in Distribution.Client.Compat.Semaphore
Methods
(==) :: QSem -> QSem -> Bool #
(/=) :: QSem -> QSem -> Bool #
newQSem :: Int -> IO QSem #
waitQSem :: QSem -> IO () #
signalQSem :: QSem -> IO () #