bt_mesh_atomic_dec() function
Atomic decrement primitive This routine provides the atomic decrement operator. The value at is atomically decremented by 1, and the old value from is returned.
Arguments
target
memory location to decrement
Return value
The value from prior to the decrement
![]()
return bt_mesh_atomic_dec(target);
bt_mesh_atomic_dec() is called by 2 functions and calls 2 functions:
![]()
bt_mesh_atomic_dec()