atomic_clear() function
Atomic clear. This routine atomically sets @a target to zero and returns its previous value. (Hence, it is equivalent to atomic_set(target, 0).)
Arguments
target
Address of atomic variable.
Return value
Previous value of @a target.