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

30 lines
425 B
ReStructuredText

PR_NewLock
==========
Creates a new lock.
Syntax
------
.. code::
#include <prlock.h>
PRLock* PR_NewLock(void);
Returns
~~~~~~~
The function returns one of the following values:
- If successful, a pointer to the new lock object.
- If unsuccessful (for example, the lock cannot be created because of
resource constraints), ``NULL``.
Description
-----------
:ref:`PR_NewLock` creates a new opaque lock.