← Docs
kotlin-stdlib / kotlin.concurrent / AtomicNativePtr / <init>

<init>

Native
1.3
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 , compareAndExchange operations perform comparison by value.

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .