summaryrefslogtreecommitdiffstats
path: root/docs/nspr/reference/pr_postsemaphore.rst
blob: e7145a60feccc99c1a129ac9c40289e1db615dae (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_PostSemaphore
================

Increments the value of a specified semaphore.


Syntax
------

.. code::

   #include <pripcsem.h>

   NSPR_API(PRStatus) PR_PostSemaphore(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`