Atomically decrements a 32-bit value.
#include <pratom.h> PRInt32 PR_AtomicDecrement(PRInt32 *val);
The function has the following parameter:
val
The function returns the decremented value (i.e., the result).
PR_AtomicDecrement
first decrements the referenced variable by one. The value returned is the referenced variable's final value. The modification to memory is unconditional.