<init>
AtomicNativePtr
(
value
:
NativePtr
)
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.