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

Copy
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 Header Library

wRTOS 1.1 SDK

windows.h

wRTOS_rtss.lib

Example

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

See Also: