summaryrefslogtreecommitdiffstats
path: root/docs/nspr/reference/pr_destroylock.rst
blob: 9ed566efc58db03492deece19ad1bee8a1a39dc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
PR_DestroyLock
==============

Destroys a specified lock object.


Syntax
------

.. code::

   #include <prlock.h>

   void PR_DestroyLock(PRLock *lock);


Parameter
~~~~~~~~~

:ref:`PR_DestroyLock` has one parameter:

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

Caution
-------

The caller must ensure that no thread is currently in a lock-specific
function. Locks do not provide self-referential protection against
deletion.