package jack

  1. Overview
  2. Docs

Module Jack.WaitSource

Lightweight one-shot thread synchronization. Backed by a POSIX semaphore on Unix/macOS (via GCD dispatch semaphores on macOS) and a mutex+condition variable on Windows. One thread calls wait to block; another calls signal to unblock it.

Sourcetype t
Sourceval create : unit -> t
Sourceval signal : t -> unit
Sourceval wait : t -> unit