fune/docs/nspr/reference/pr_atomicadd.rst

43 lines
481 B
ReStructuredText
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

PR_AtomicAdd
============
.. _Syntax:
Syntax
------
.. code:: eval
#include <pratom.h>
PRInt32 PR_AtomicAdd(
PRInt32 *ptr,
PRInt32 val);
.. _Parameter:
Parameter
~~~~~~~~~
The function has the following parameters:
``ptr``
A pointer to the value to increment.
``val``
A value to be added.
.. _Returns:
Returns
~~~~~~~
The returned value is the result of the addition.
.. _Description:
Description
-----------
Atomically add a 32 bit value.