IPC@CHIP® RTOS-PPC – API Documentation

Header image

Main page

static void atomicWrite ( DWORD_ATOM ptr,
DWORD  value 
) [inline, static]

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

Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Thu Jan 26 16:21:38 2017 by Doxygen 1.6.1