Tiny_httpd_unix.Sem
semaphore, for limiting concurrency.
type t = {
mutable n : int;
max : int;
mutex : Stdlib.Mutex.t;
cond : Stdlib.Condition.t;
}
val create : int -> t
val acquire : int -> t -> unit
val release : int -> t -> unit
val num_acquired : t -> int