AWS IoT Device SDK C: Platform
Platform portability layer
Return to main page ↑
Atomic_Swap_Pointer

Atomically writes a pointer value to memory.

static inline void * Atomic_Swap_Pointer( void * volatile * pDestination,
void * pNewValue )
Parameters
[in,out]pDestinationWhere pNewValue will be written.
[in]pNewValueThe value to write to pDestination.
Returns
The initial value at pDestination.