Condition.Factorymodule Mutex : Mutex.Mutex_tval create : unit -> conditionCreate a condition. Implementation-wise, * a duppy task is created that will be used to select a * waiting computation, and resume it. * Thus, priority and s represents, resp., the priority * and scheduler used when running calling process' computation.
val wait : condition -> Mutex.mutex -> (unit, 'a) twait h m is a computation that: *
mCondition.signal c or Condition.broadcast c has been calledmunitbroadcast c is a computation that * resumes all computations waiting on c. It should * return immediately.