summaryrefslogtreecommitdiffstats
path: root/docs/nspr/reference/pr_closesemaphore.rst
blob: 07d1aca46eb56003a23a55ce46644dc947a84b06 (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_CloseSemaphore
=================

Closes a specified semaphore.


Syntax
------

.. code::

   #include <pripcsem.h>

   NSPR_API(PRStatus) PR_CloseSemaphore(PRSem *sem);


Parameter
~~~~~~~~~

The function has the following parameter:

``sem``
   A pointer to a ``PRSem`` structure returned from a call to
   :ref:`PR_OpenSemaphore`.


Returns
~~~~~~~

:ref:`PRStatus`