Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/docs/nspr/reference/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 642 B image not shown  

Quellcode-Bibliothek pr_unlock.rst   Sprache: unbekannt

 
Columbo aufrufen.rst Download desUnknown {[0] [0] [0]}Datei anzeigen

PR_Unlock
=========

Releases a specified lock object. Releasing an unlocked lock results in
an error.

Attempting to release a lock that was locked by a different thread
causes undefined behavior.


Syntax
------

.. code::

   #include <prlock.h>

   PRStatus PR_Unlock(PRLock *lock);


Parameter
~~~~~~~~~

:ref:`PR_Unlock` has one parameter:

``lock``
   A pointer to a lock object to be released.


Returns
~~~~~~~

The function returns one of the following values:

-  If successful, ``PR_SUCCESS``.
-  If unsuccessful (for example, if the caller does not own the lock),
   ``PR_FAILURE``.


See Also
--------

-  `PR_Lock <PR_Lock>`__

[ 0.36Quellennavigators  ]