summaryrefslogtreecommitdiffstats
path: root/docs/nspr/reference/pr_deletesemaphore.rst
blob: bfef8e89eb5203fedb1d6d9a21e2bfabe1ff2ac6 (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_DeleteSemaphore
==================

Removes a semaphore specified by name from the system.


Syntax
------

.. code::

   #include <pripcsem.h>

   NSPR_API(PRStatus) PR_DeleteSemaphore(const char *name);


Parameter
~~~~~~~~~

The function has the following parameter:

``name``
   The name of a semaphore that was previously created via a call to
   :ref:`PR_OpenSemaphore`.


Returns
~~~~~~~

:ref:`PRStatus`