ghc-lib-9.8.2.20240223: The GHC API, decoupled from GHC versions
Safe HaskellSafe-Inferred
LanguageHaskell2010

GHC.Driver.MakeSem

Description

Implementation of a jobserver using system semaphores.

Synopsis

JSem: parallelism semaphore backed

runJSemAbstractSem Source #

Arguments

:: SemaphoreName

the system semaphore to use

-> (AbstractSem -> IO a)

the operation to run which requires a semaphore

-> IO a 

Implement an abstract semaphore using a semaphore Jobserver which queries the system semaphore of the given name for resources.

System semaphores

data Semaphore #

A system semaphore (POSIX or Win32).

newtype SemaphoreName #

Constructors

SemaphoreName 

Instances

Instances details
Eq SemaphoreName 
Instance details

Defined in System.Semaphore

Abstract semaphores

data AbstractSem #

Abstraction over the operations of a semaphore.

Constructors

AbstractSem 

Fields