Package-level declarations

Types

Link copied to clipboard
interface AtomicBoolean

Atomic Boolean

Link copied to clipboard
interface AtomicInt

Atomic Int.

Link copied to clipboard
interface AtomicLong

Atomic Long.

Link copied to clipboard
interface AtomicRef<T>

Atomic reference

Link copied to clipboard
interface AtomicUInt

Atomic UInt

Link copied to clipboard
interface AtomicULong

Atomic ULong

Functions

Link copied to clipboard
expect fun atomic(value: Boolean): AtomicBoolean

Create an instance of AtomicBoolean

expect fun atomic(value: Int): AtomicInt
expect fun atomic(value: UInt): AtomicUInt

Create an instance of AtomicInt

expect fun atomic(value: Long): AtomicLong

Create an instance of AtomicLong

expect fun atomic(value: ULong): AtomicULong

Create an instance of AtomicULong

actual fun atomic(value: Boolean): AtomicBoolean

Create an instance of AtomicBoolean

actual fun atomic(value: Int): AtomicInt
actual fun atomic(value: UInt): AtomicUInt

Create an instance of AtomicInt

actual fun atomic(value: Long): AtomicLong

Create an instance of AtomicLong

actual fun atomic(value: ULong): AtomicULong

Create an instance of AtomicULong

actual fun atomic(value: Boolean): AtomicBoolean

Create an instance of AtomicBoolean

actual fun atomic(value: Int): AtomicInt
actual fun atomic(value: UInt): AtomicUInt

Create an instance of AtomicInt

actual fun atomic(value: Long): AtomicLong

Create an instance of AtomicLong

actual fun atomic(value: ULong): AtomicULong

Create an instance of AtomicULong

actual fun atomic(value: Boolean): AtomicBoolean

Create an instance of AtomicBoolean

actual fun atomic(value: Int): AtomicInt
actual fun atomic(value: UInt): AtomicUInt

Create an instance of AtomicInt

actual fun atomic(value: Long): AtomicLong

Create an instance of AtomicLong

actual fun atomic(value: ULong): AtomicULong

Create an instance of AtomicULong

actual fun atomic(value: Boolean): AtomicBoolean

Create an instance of AtomicBoolean

actual fun atomic(value: Int): AtomicInt
actual fun atomic(value: UInt): AtomicUInt

Create an instance of AtomicInt

actual fun atomic(value: Long): AtomicLong

Create an instance of AtomicLong

actual fun atomic(value: ULong): AtomicULong

Create an instance of AtomicULong

Link copied to clipboard
expect fun <T> atomicRef(value: T): AtomicRef<T>

Create an instance of AtomicRef<T>

actual fun <T> atomicRef(value: T): AtomicRef<T>

Create an instance of AtomicRef<T>

actual fun <T> atomicRef(value: T): AtomicRef<T>

Create an instance of AtomicRef<T>

actual fun <T> atomicRef(value: T): AtomicRef<T>

Create an instance of AtomicRef<T>

actual fun <T> atomicRef(value: T): AtomicRef<T>

Create an instance of AtomicRef<T>

Link copied to clipboard

Create an instance of AtomicULong

Inherited functions

Link copied to clipboard
operator fun AtomicInt.minusAssign(delta: Int)

Operator -= for AtomicInt.

operator fun AtomicLong.minusAssign(delta: Long)

Operator -= for AtomicLong.

operator fun AtomicUInt.minusAssign(delta: UInt)

Operator -= for AtomicUInt.

operator fun AtomicULong.minusAssign(delta: ULong)

Operator -= for AtomicULong.

Link copied to clipboard
operator fun AtomicInt.plusAssign(delta: Int)

Operator += for AtomicInt.

operator fun AtomicLong.plusAssign(delta: Long)

Operator += for AtomicLong.

operator fun AtomicUInt.plusAssign(delta: UInt)

Operator += for AtomicUInt.

operator fun AtomicULong.plusAssign(delta: ULong)

Operator += for AtomicULong.

Link copied to clipboard
inline fun AtomicInt.update(block: (Int) -> Int): Int
inline fun AtomicUInt.update(block: (UInt) -> UInt): UInt

Update value by AtomicInt.compareAndSet and then return the old value.

inline fun AtomicLong.update(block: (Long) -> Long): Long
inline fun AtomicULong.update(block: (ULong) -> ULong): ULong

Update value by AtomicLong.compareAndSet and then return the old value.

inline fun <T> AtomicRef<T>.update(block: (T) -> T): T

Update value by AtomicRef.compareAndSet and then return the old value.

Link copied to clipboard
inline fun AtomicInt.updateAndGet(block: (Int) -> Int): Int

Update value by AtomicInt.compareAndSet and then return the new value.

inline fun AtomicLong.updateAndGet(block: (Long) -> Long): Long

Update value by AtomicLong.compareAndSet and then return the new value.

inline fun <T> AtomicRef<T>.updateAndGet(block: (T) -> T): T

Update value by AtomicRef.compareAndSet and then return the new value.

inline fun AtomicUInt.updateAndGet(block: (UInt) -> UInt): UInt

Update value by AtomicUInt.compareAndSet and then return the new value.

inline fun AtomicULong.updateAndGet(block: (ULong) -> ULong): ULong

Update value by AtomicULong.compareAndSet and then return the new value.