pr_newcondvar.rst (552B)
1 PR_NewCondVar 2 ============= 3 4 Creates a new condition variable. 5 6 7 Syntax 8 ------ 9 10 .. code:: 11 12 #include <prcvar.h> 13 14 PRCondVar* PR_NewCondVar(PRLock *lock); 15 16 17 Parameter 18 ~~~~~~~~~ 19 20 :ref:`PR_NewCondVar` has one parameter: 21 22 ``lock`` 23 The identity of the mutex that protects the monitored data, including 24 this condition variable. 25 26 27 Returns 28 ~~~~~~~ 29 30 The function returns one of the following values: 31 32 - If successful, a pointer to the new condition variable object. 33 - If unsuccessful (for example, if system resources are unavailable), 34 ``NULL``.