12-03-2012 02:27 PM
Hi I know there is :
atomic_add((volatile unsigned *)value, 1);
atomic_sub((volatile unsigned *)value, 1);
for atomic inc and dec,
but is there any way to do atomic swap ?
Is atomic_set_value() an equivalent of this ?
and what about compare and swap ?
Thanks ![]()