HORIZON HASKELLDocslts/ghc-9.14.x6d5fdfd2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 6d5fdfd · 2026-10-12

Moduleghc-9.14.1GHC2021

GHC.Driver.MakeSem

Implementation of a jobserver using system semaphores.

Contents
  1. JSem: parallelism semaphore backed
  2. System semaphores
  3. Abstract semaphores
Synopsis
  • Packageghc-9.14.1
  • Exports5
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceMakeSem.hs

JSem: parallelism semaphore backed

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

Abstract semaphores