pub unsafe fn aws_atomic_exchange_ptr(
    var: *mut AwsCAtomicVar,
    n: *mut c_void
) -> *mut c_void
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.