package tiny_httpd

  1. Overview
  2. Docs

semaphore, for limiting concurrency.

type t = {
  1. mutable n : int;
  2. max : int;
  3. mutex : Mutex.t;
  4. cond : Condition.t;
}
val create : int -> t
val acquire : int -> t -> unit
val release : int -> t -> unit
val num_acquired : t -> int
OCaml

Innovation. Community. Security.