std1.0.0-beta-7 SafeC docs

std :: atomic

Function std::atomic_exchange_int

#include <std/atomic.h> source ยท definition

int atomic_exchange_int(&int addr, int val)

Atomically exchange *addr with val; return the old value.