WakeConditionVariable

WakeConditionVariable wakes at most one thread waiting on the condition variable. The selection is in FIFO order (i.e., the first thread to wait is the first to be awakened).

Syntax

VOID WakeConditionVariable(
    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 RTX64 4.5.5
Header windows.h
Library Rtx_Rtss.lib

Example

Copy
AcquireSRWLockExclusive(&lock);
dataReady = TRUE;
WakeConditionVariable(&cv);  // Wake one waiter
ReleaseSRWLockExclusive(&lock);

See Also: