windows/ConditionVariable

Raw operating-system-thread wait primitive over one supplied mutex. wait temporarily releases that mutex, waits, and reacquires the same mode before return.


ConditionVariable

Methods

INIT (--) Resets the condition variable to the initial empty-waiter state.
wait (mutex time shared -- signaled) Waits on the supplied mutex. The lock is released while waiting and reacquired in the same mode before return. The result is TRUE when waiting ends before timeout and FALSE when a finite timeout expires.

Preconditions

  • The current thread already holds mutex in exclusive mode when shared is FALSE.
  • The current thread already holds mutex in shared mode when shared is TRUE.
wakeAll (--) Releases every thread that is already waiting at that moment.
wakeOne (--) Releases one thread that is already waiting at that moment.

Remarks


Wait semantics


See also