exchange

fun exchange(newValue: NativePtr): NativePtr(source)

Atomically stores the given new value into this AtomicNativePtr and returns the old value.

Since Kotlin

2.1