WakeAllConditionVariable
WakeAllConditionVariable wakes all threads currently waiting on the condition variable. All awakened threads will attempt to reacquire their associated locks.
Syntax
VOID WakeAllConditionVariable(
PCONDITION_VARIABLE pConditionVariable
);
Parameters
pConditionVariable
A pointer to the condition variable.
Return Value
This function does not return a value.
Remarks
- This function wakes all threads currently waiting. It does nothing if no threads are waiting.
- All awakened threads must reacquire their associated locks
- This function raises EXCEPTION_ACCESS_VIOLATION if pConditionVariable is NULL
Requirements
| Minimum supported version | Header | Library |
|---|---|---|
|
wRTOS 1.1 SDK |
windows.h |
wRTOS_rtss.lib |
Example
AcquireSRWLockExclusive(&lock);
shutdownRequested = TRUE;
WakeAllConditionVariable(&cv); // Wake all waiters
ReleaseSRWLockExclusive(&lock);
See Also:
- RTL_CONDITION_VARIABLE
- InitializeConditionVariable
- SleepConditionVariableCS
- SleepConditionVariableSRW
- WakeConditionVariable