AtomicNativePtr
Deprecated (with error)
Use kotlin.concurrent.AtomicNativePtr instead.
Replace with
kotlin.concurrent.AtomicNativePtr
A kotlinx.cinterop.NativePtr value that is always updated atomically. For additional details about atomicity guarantees for reads and writes see kotlin.concurrent.Volatile.
kotlinx.cinterop.NativePtr is a value type, hence it is stored in AtomicNativePtr without boxing and compareAndSet, compareAndSwap operations perform comparison by value.
Since Kotlin
1.3Functions
Atomically sets the value to the given new value if the current value equals the expected value, returns true if the operation was successful and false only if the current value was not equal to the expected value.
Atomically sets the value to the given new value if the current value equals the expected value and returns the old value in any case.