Files
tubestation/docs/nspr/reference/pr_atomicincrement.rst

42 lines
625 B
ReStructuredText

PR_AtomicIncrement
==================
Atomically increments a 32-bit value.
.. _Syntax:
Syntax
------
.. code:: eval
#include <pratom.h>
PRInt32 PR_AtomicIncrement(PRInt32 *val);
.. _Parameter:
Parameter
~~~~~~~~~
The function has the following parameter:
``val``
A pointer to the value to increment.
.. _Returns:
Returns
~~~~~~~
The function returns the incremented value (i.e., the result).
.. _Description:
Description
-----------
The referenced variable is incremented by one. The result of the
function is the value of the memory after the operation. The writing of
the memory is unconditional.