Waits on c until another thread calls wake or wake_all. It can return without either, so check the condition again afterwards.
- m: the mutex the caller holds. It is released while waiting and held again when
waitreturns.
wait :: (c: *Condition_Variable, m: *Mutex)
Waits on c until another thread calls wake or wake_all. It can return without either, so check the condition again afterwards.
Parameters
- m: *Mutex
- the mutex the caller holds. It is released while waiting and held again when
waitreturns.