mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 12:51:06 +00:00
ce377110d8
Differential Revision: https://phabricator.services.mozilla.com/D165625
35 lines
552 B
ReStructuredText
35 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``.
|