|
AWS IoT Device SDK C:
Platform
Platform portability layer
|
| Return to main page ↑ |
Performs an atomic compare-and-swap operation on the given values.
| [in,out] | pDestination | Pointer to memory location from where value is to be loaded and checked. |
| [in] | newValue | This value will be written to memory if the comparand matches the value at pDestination. |
| [in] | comparand | This value is compared to the value at pDestination. |
1 if the newValue was written to pDestination; 0 otherwise.