AtomicNativePtr

Since Kotlin

1.3

Constructors

Link copied to clipboard
constructor(value_: NativePtr)

Properties

Link copied to clipboard

The value being held by this class.

Since Kotlin 1.3

Functions

Link copied to clipboard
external fun compareAndSet(expected: NativePtr, new: NativePtr): Boolean

Compares value with expected and replaces it with new value if values matches.

Since Kotlin 1.3
Link copied to clipboard
external fun compareAndSwap(expected: NativePtr, new: NativePtr): NativePtr

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.

Since Kotlin 1.3
Link copied to clipboard
open override fun toString(): String

Returns the string representation of this object.

Since Kotlin 1.3