1
0
Fork 0
firefox/docs/nspr/reference/pr_newcondvar.rst
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

34 lines
552 B
ReStructuredText

PR_NewCondVar
=============
Creates a new condition variable.
Syntax
------
.. code::
#include <prcvar.h>
PRCondVar* PR_NewCondVar(PRLock *lock);
Parameter
~~~~~~~~~
:ref:`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:
- If successful, a pointer to the new condition variable object.
- If unsuccessful (for example, if system resources are unavailable),
``NULL``.