1
0
Fork 0
firefox/docs/nspr/reference/pr_newmonitor.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

31 lines
538 B
ReStructuredText

PR_NewMonitor
=============
Creates a new monitor object. The caller is responsible for the object
and is expected to destroy it when appropriate.
Syntax
------
.. code::
#include <prmon.h>
PRMonitor* PR_NewMonitor(void);
Returns
~~~~~~~
The function returns one of the following values:
- If successful, a pointer to a :ref:`PRMonitor` object.
- If unsuccessful (for example, if some operating system resource is
unavailable), ``NULL``.
Description
-----------
A newly created monitor has an entry count of zero.