HORIZON HASKELLDocslts/ghc-10.0.x04404a62026-10-19Search packagesCtrl K
Theme: |

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

Moduleghc-10.0.0.20260917GHC2024

GHC.Driver.MakeSem

Implementation of a jobserver using system semaphores.

Contents
  1. Abstract semaphores
Synopsis

Abstract semaphores

valuewithAbstractSem :: AbstractSem -> IO b -> IO b

Acquire/release bracket pattern: acquire a token, perform an action, and release the token.

Guarantees that the token is released in case that the inner action throws an exception.