HORIZON HASKELLDocslts/ghc-10.0.xa64b84b2026-10-19Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · a64b84b · 2026-10-19

Modulelifted-base-0.2.3.12

Control.Concurrent.QSemN.Lifted

  • 1 type
  • 3 values
datadata QSemN
#

QSemN is a quantity semaphore in which the resource is acquired and released in arbitrary amounts. It provides guaranteed FIFO ordering for satisfying blocked waitQSemN calls.

The pattern

bracket_ (waitQSemN n) (signalQSemN n) (...)

is safe; it never loses any of the resource.