pr_atomicadd.rst (415B)
1 PR_AtomicAdd 2 ============ 3 4 5 Syntax 6 ------ 7 8 .. code:: 9 10 #include <pratom.h> 11 12 PRInt32 PR_AtomicAdd( 13 PRInt32 *ptr, 14 PRInt32 val); 15 16 17 Parameter 18 ~~~~~~~~~ 19 20 The function has the following parameters: 21 22 ``ptr`` 23 A pointer to the value to increment. 24 ``val`` 25 A value to be added. 26 27 28 Returns 29 ~~~~~~~ 30 31 The returned value is the result of the addition. 32 33 34 Description 35 ----------- 36 37 Atomically add a 32 bit value.