pr_atomicdecrement.rst (578B)
1 PR_AtomicDecrement 2 ================== 3 4 Atomically decrements a 32-bit value. 5 6 7 Syntax 8 ------ 9 10 .. code:: 11 12 #include <pratom.h> 13 14 PRInt32 PR_AtomicDecrement(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 decrement. 24 25 26 Returns 27 ~~~~~~~ 28 29 The function returns the decremented value (i.e., the result). 30 31 32 Description 33 ----------- 34 35 :ref:`PR_AtomicDecrement` first decrements the referenced variable by one. 36 The value returned is the referenced variable's final value. The 37 modification to memory is unconditional.