atomic_long_add
long i = atomic_long_add(-1, v);
atomic_long_add(1 + msg->retries,
atomic_long_add(msg->retries,