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

Performs an atomic subtraction of the given values.

static inline uint32_t Atomic_Subtract_u32( uint32_t volatile * pMinuend,
uint32_t subtrahend )
Parameters
[in,out]pMinuendPointer to the minuend and where the difference is stored.
[in]subtrahendValue to subtract from the minuend.
Returns
The initial value at pMinuend.