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 | RTX64 4.5.5 |
| Header | windows.h |
| Library | Rtx_Rtss.lib |
Example
Copy
AcquireSRWLockExclusive(&lock);
shutdownRequested = TRUE;
WakeAllConditionVariable(&cv); // Wake all waiters
ReleaseSRWLockExclusive(&lock);
See Also:
- RTL_CONDITION_VARIABLE
- InitializeConditionVariable
- SleepConditionVariableCS
- SleepConditionVariableSRW
- WakeConditionVariable