pub unsafe fn aws_atomic_exchange_int(var: *mut AwsCAtomicVar, n: usize) -> usize
Expand description

Exchanges an integer with the value in an atomic_var, using sequentially consistent ordering. Returns the value that was previously in the atomic_var.

Safety

The caller must ensure that the AwsCAtomicVar pointer is valid.