WakeAllConditionVariable

WakeAllConditionVariable wakes all threads currently waiting on the condition variable. All awakened threads will attempt to reacquire their associated locks.

Syntax

Copy
VOID WakeAllConditionVariable(
    PCONDITION_VARIABLE pConditionVariable
);

Parameters

pConditionVariable

A pointer to the condition variable.

Return Value

This function does not return a value.

Remarks

Requirements

Minimum supported version Header Library

wRTOS 1.1 SDK

windows.h

wRTOS_rtss.lib

Example

Copy
AcquireSRWLockExclusive(&lock);
shutdownRequested = TRUE;
WakeAllConditionVariable(&cv);  // Wake all waiters
ReleaseSRWLockExclusive(&lock);

See Also: