pr_atomicincrement.rst (563B)
1 PR_AtomicIncrement 2 ================== 3 4 Atomically increments a 32-bit value. 5 6 7 Syntax 8 ------ 9 10 .. code:: 11 12 #include <pratom.h> 13 14 PRInt32 PR_AtomicIncrement(PRInt32 *val); 15 16 17 Parameter 18 ~~~~~~~~~ 19 20 The function has the following parameter: 21 22 ``val`` 23 A pointer to the value to increment. 24 25 26 Returns 27 ~~~~~~~ 28 29 The function returns the incremented value (i.e., the result). 30 31 32 Description 33 ----------- 34 35 The referenced variable is incremented by one. The result of the 36 function is the value of the memory after the operation. The writing of 37 the memory is unconditional.