AtomicNativePtr

class AtomicNativePtr(value_: NativePtr)

Functions

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

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

compareAndSwap
Link copied to clipboard
Native
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.

toString
Link copied to clipboard
Native
open override fun toString(): String

Returns the string representation of this object.

Properties

value
Link copied to clipboard
Native
var value: NativePtr

The value being held by this class.