This inline function provides a way to write to 32 bit memory location in a thread safe manner. Any outstanding LWARX reservation will be cleared.
The function performed here is:
void atomicWrite( DWORD_ATOM *ptr, DWORD value)
*ptr = value ;
clear the PowerPC memory reservation ;
|ptr ||Location to be written. This must be aligned on a DWORD boundary. |
|value ||Value to write |
- See also:
- atomicReadWrite() atomicReset() atomicSet()
- This function is not available in the SC1x, SC2x and SC1x3 C-Library.
- SC2x3 n/a - CLIB V1.02