AtomicLong
Wrapper around Long 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 AtomicLong type.
Constructors
Properties
value
The value being held by this class.
var value: Long
Functions
addAndGet
Increments the value by delta and returns the new value.
fun addAndGet(delta: Long): Long
fun addAndGet(delta: Int): Long
decrement
Decrements value by one.
fun decrement()
increment
Increments value by one.
fun increment()
toString
Returns the string representation of this object.
fun toString(): String