AtomicLong
Platform and version requirements: Native (1.3)
class AtomicLong
Constructors
Platform and version requirements: Native (1.3)
<init>
AtomicLong(value_: Long = 0)
Properties
Platform and version requirements: Native (1.3)
value
The value being held by this class.
var value: Long
Functions
Platform and version requirements: Native (1.3)
addAndGet
Increments the value by delta and returns the new value.
fun addAndGet(delta: Long): Long
fun addAndGet(delta: Int): Long
Platform and version requirements: Native (1.3)
compareAndSet
Platform and version requirements: Native (1.3)
compareAndSwap
Platform and version requirements: Native (1.3)
decrement
Decrements value by one.
fun decrement()
Platform and version requirements: Native (1.3)
increment
Increments value by one.
fun increment()
Platform and version requirements: Native (1.3)
toString
Returns the string representation of this object.
fun toString(): String
© 2010–2021 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-long/index.html