On this page
AtomicNativePtr
class AtomicNativePtr
Wrapper around kotlinx.cinterop.NativePtr with atomic synchronized operations.
Legacy MM: Atomic values and freezing: this type is unique with regard to freezing. Namely, it provides mutating operations, while can participate in frozen subgraphs. So shared frozen objects can have mutable fields of AtomicNativePtr type.
Constructors
<init>
Wrapper around kotlinx.cinterop.NativePtr with atomic synchronized operations.
AtomicNativePtr(value_: NativePtr)
Properties
value
The value being held by this class.
var value: NativePtr
Functions
compareAndSet
compareAndSwap
toString
Returns the string representation of this object.
fun toString(): String
© 2010–2023 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.native.concurrent/-atomic-native-ptr/index.html