class AtomicNativePtr
AtomicNativePtr(value_: NativePtr)
The value being held by this class.
var value: NativePtr
Compares value with expected and replaces it with new value if values matches.
fun compareAndSet( expected: NativePtr, new: NativePtr ): Boolean
Compares value with expected and replaces it with new value if values matches. If new value is not null, it must be frozen or permanent object.
fun compareAndSwap( expected: NativePtr, new: NativePtr ): NativePtr
Returns the string representation of this object.
fun toString(): String
© 2010–2019 JetBrains s.r.o.Licensed under the Apache License, Version 2.0. https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.native.concurrent/-atomic-native-ptr/index.html