Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
P6API P6INT32 P6CCALL P6R::p6AtomicAdd32 ( P6INT32 volatile *  pVar,
P6INT32  value 
)

Atomically adds the specified value to the variable pointed to by pVar.

Note
It is recommended that pVar be aligned on it's natural boundary for better performance. In this case pVar should by on an 4 byte (32-bit) aligned boundary.
Parameters
pVarA pointer to the P6UINT32, the addend.
valueThe value to add to the addend.
Returns
The prior value contained in pVar.