std :: atomic
#include <std/atomic.h> source ยท definition
#include <std/atomic.h>
int atomic_exchange_int(&int addr, int val)
Atomically exchange *addr with val; return the old value.