Package-level declarations

Atomic scalar and array types and utilities for working with them.

Atomic scalar and array types and utilities for working with them.

Atomic scalar and array types and utilities for working with them.

Atomic scalar and array types and utilities for working with them.

Atomic scalar and array types and utilities for working with them.

Atomic scalar and array types and utilities for working with them.

Types

Link copied to clipboard

A generic array of objects in which elements may be updated atomically.

Since Kotlin 2.1

A generic array of objects in which elements may be updated atomically.

Since Kotlin 2.1

A generic array of objects in which elements may be updated atomically.

Since Kotlin 2.1

A generic array of objects in which elements may be updated atomically.

Since Kotlin 2.1

A generic array of objects in which elements may be updated atomically.

Since Kotlin 2.1

A generic array of objects in which elements may be updated atomically.

Since Kotlin 2.1
Link copied to clipboard

A Boolean value that may be updated atomically.

Since Kotlin 2.1

A Boolean value that may be updated atomically.

Since Kotlin 2.1

A Boolean value that may be updated atomically.

Since Kotlin 2.1

A Boolean value that may be updated atomically.

Since Kotlin 2.1

A Boolean value that may be updated atomically.

Since Kotlin 2.1

A Boolean value that may be updated atomically.

Since Kotlin 2.1
Link copied to clipboard

An Int value that may be updated atomically.

Since Kotlin 2.1

An Int value that may be updated atomically.

Since Kotlin 2.1

An Int value that may be updated atomically.

Since Kotlin 2.1

An Int value that may be updated atomically.

Since Kotlin 2.1

An Int value that may be updated atomically.

Since Kotlin 2.1

An Int value that may be updated atomically.

Since Kotlin 2.1
Link copied to clipboard

An array of ints in which elements may be updated atomically.

Since Kotlin 2.1

An array of ints in which elements may be updated atomically.

Since Kotlin 2.1

An array of ints in which elements may be updated atomically.

Since Kotlin 2.1

An array of ints in which elements may be updated atomically.

Since Kotlin 2.1

An array of ints in which elements may be updated atomically.

Since Kotlin 2.1

An array of ints in which elements may be updated atomically.

Since Kotlin 2.1
Link copied to clipboard

A Long value that may be updated atomically.

Since Kotlin 2.1

A Long value that may be updated atomically.

Since Kotlin 2.1

A Long value that may be updated atomically.

Since Kotlin 2.1

A Long value that may be updated atomically.

Since Kotlin 2.1

A Long value that may be updated atomically.

Since Kotlin 2.1

A Long value that may be updated atomically.

Since Kotlin 2.1
Link copied to clipboard

An array of longs in which elements may be updated atomically.

Since Kotlin 2.1

An array of longs in which elements may be updated atomically.

Since Kotlin 2.1

An array of longs in which elements may be updated atomically.

Since Kotlin 2.1

An array of longs in which elements may be updated atomically.

Since Kotlin 2.1

An array of longs in which elements may be updated atomically.

Since Kotlin 2.1

An array of longs in which elements may be updated atomically.

Since Kotlin 2.1
Link copied to clipboard
class AtomicNativePtr(var value: NativePtr)

A kotlinx.cinterop.NativePtr that may be updated atomically.

Since Kotlin 2.1
Link copied to clipboard

An object reference that may be updated atomically.

Since Kotlin 2.1

An object reference that may be updated atomically.

Since Kotlin 2.1

An object reference that may be updated atomically.

Since Kotlin 2.1

An object reference that may be updated atomically.

Since Kotlin 2.1

An object reference that may be updated atomically.

Since Kotlin 2.1

An object reference that may be updated atomically.

Since Kotlin 2.1

Functions

Link copied to clipboard
inline fun <T> AtomicArray(size: Int, init: (Int) -> T): AtomicArray<T>

Creates a new AtomicArray of the given size, where each element is initialized by calling the given init function.

Since Kotlin 2.1
Link copied to clipboard

Creates a new AtomicIntArray of the given size, where each element is initialized by calling the given init function.

Since Kotlin 2.1
Link copied to clipboard

Creates a new AtomicLongArray of the given size, where each element is initialized by calling the given init function.

Since Kotlin 2.1
Link copied to clipboard

Atomically decrements the current value of this AtomicInt by one and returns the new value.

Since Kotlin 2.1

Atomically decrements the current value of this AtomicLong by one and returns the new value.

Since Kotlin 2.1
Link copied to clipboard

Atomically decrements the element of this AtomicIntArray at the given index by one and returns the new value of the element.

Since Kotlin 2.1

Atomically decrements the element of this AtomicLongArray at the given index by one and returns the new value of the element.

Since Kotlin 2.1
Link copied to clipboard

Atomically decrements the current value of this AtomicInt by one and returns the old value.

Since Kotlin 2.1

Atomically decrements the current value of this AtomicLong by one and returns the old value.

Since Kotlin 2.1
Link copied to clipboard

Atomically decrements the element of this AtomicIntArray at the given index by one and returns the old value of the element.

Since Kotlin 2.1

Atomically decrements the element of this AtomicLongArray at the given index by one and returns the old value of the element.

Since Kotlin 2.1
Link copied to clipboard

Atomically increments the current value of this AtomicInt by one and returns the old value.

Since Kotlin 2.1

Atomically increments the current value of this AtomicLong by one and returns the old value.

Since Kotlin 2.1
Link copied to clipboard

Atomically increments the element of this AtomicIntArray at the given index by one and returns the old value of the element.

Since Kotlin 2.1

Atomically increments the element of this AtomicLongArray at the given index by one and returns the old value of the element.

Since Kotlin 2.1
Link copied to clipboard

Atomically increments the current value of this AtomicInt by one and returns the new value.

Since Kotlin 2.1

Atomically increments the current value of this AtomicLong by one and returns the new value.

Since Kotlin 2.1
Link copied to clipboard

Atomically increments the element of this AtomicIntArray at the given index by one and returns the new value of the element.

Since Kotlin 2.1

Atomically increments the element of this AtomicLongArray at the given index by one and returns the new value of the element.

Since Kotlin 2.1
Link copied to clipboard

Atomically subtracts the given value from the current value of this AtomicInt.

Since Kotlin 2.1

Atomically subtracts the given value from the current value of this AtomicLong.

Since Kotlin 2.1
Link copied to clipboard

Atomically adds the given value to the current value of this AtomicInt.

Since Kotlin 2.1

Atomically adds the given value to the current value of this AtomicLong.

Since Kotlin 2.1