1
0
Fork 0
firefox/docs/nspr/reference/pr_atomicadd.rst
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

37 lines
415 B
ReStructuredText

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