This inline function provides a way to add a specified value to 32 bit memory location in a thread safe manner. Either value may be signed. A cast to DWORD_ATOM type pointer can be used in these cases.
The function performed atomically here is:
|ptr ||Location to be incremented. This must be aligned on a DWORD boundary. |
|value ||Value to add to the specified location. |
- Resulting new value.
- See also:
- atomicXor() atomicModify() atomicReset() atomicSet() atomicReadWrite()
- This function is not available in the SC1x, SC2x and SC1x3 C-Library.
- SC2x3 n/a - CLIB V1.02