Creates a new condition variable.

Syntax

#include <prcvar.h>

PRCondVar* PR_NewCondVar(PRLock *lock);

Parameter

PR_NewCondVar has one parameter:

lock
The identity of the mutex that protects the monitored data, including this condition variable.

Returns

The function returns one of the following values: