Distribution.Client.Compat.Semaphore
data QSem Source #
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 Source #
waitQSem :: QSem -> IO () Source #
signalQSem :: QSem -> IO () Source #