A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://hackage.haskell.org/packages/archive/base/4.5.0.0/doc/html/Control-Concurrent-QSemN.html below:

Control.Concurrent.QSemN

General Quantity Semaphores

data QSemN Source

A QSemN is a quantity semaphore, in which the available "quantity" may be signalled or waited for in arbitrary amounts.

Instances

Eq QSemN   Typeable QSemN  

newQSemN :: 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