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-QSem.html below:

Control.Concurrent.QSem

Simple Quantity Semaphores

data QSem Source

A QSem is a simple quantity semaphore, in which the available "quantity" is always dealt with in units of one.

Instances

Eq QSem   Typeable QSem  

newQSem :: Int -> IO QSemSource

Build a new QSem with a supplied initial quantity. The initial quantity must be at least 0.

waitQSem :: QSem -> IO ()Source

Wait for a unit to become available

signalQSem :: QSem -> IO ()Source

Signal that a unit of the QSem is available


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