kotlin-stdlib / kotlin.concurrent / AtomicNativePtr / getAndSet getAndSet Native 1.3 fun getAndSet(newValue: NativePtr): NativePtr(source) Atomically sets the value to the given new value and returns the old value.