Thread module

wait

procedure · 1 overloadSource

Waits on c until another thread calls wake or wake_all. It can return without either, so check the condition again afterwards.

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 wait returns.

See also