HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduleghc-9.10.3GHC2021

GHC.Driver.MakeSem

Implementation of a jobserver using system semaphores.

  • 3 types
  • 2 values
  • Packageghc-9.10.3
  • Exports5
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceMakeSem.hs

JSem: parallelism semaphore backed

1 declaration
valuerunJSemAbstractSem
  1. :: SemaphoreName

    the system semaphore to use

  2. -> (AbstractSem -> IO a)

    the operation to run which requires a semaphore

  3. -> IO a
#

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

System semaphores

2 declarations
datadata Semaphore
#

A system semaphore (POSIX or Win32).

Abstract semaphores

2 declarations