HORIZON HASKELLDocslts/ghc-9.14.xb2f3bfd2026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · b2f3bfd · 2026-10-11

Moduleghc-9.14.1GHC2021

GHC.Driver.MakeSem

Implementation of a jobserver using system semaphores.

  • 3 types
  • 2 values
  • Packageghc-9.14.1
  • 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