val create : unit -> t
Return a new condition variable.
wait c m
atomically unlocks the mutex m
and suspends the calling process on the condition variable c
. The process will restart after the condition variable c
has been signalled. The mutex m
is locked again before wait
returns.
val signal : t -> unit
signal c
restarts one of the processes waiting on the condition variable c
.
val broadcast : t -> unit
broadcast c
restarts all processes waiting on the condition variable c
.