AtomicUInt

interface AtomicUInt(source)

Atomic UInt

Author

ForteScarlet

Properties

Link copied to clipboard
abstract var value: UInt

Functions

Link copied to clipboard
abstract fun compareAndExchange(expect: UInt, value: UInt): UInt
Link copied to clipboard
abstract fun compareAndSet(expect: UInt, value: UInt): Boolean
Link copied to clipboard
abstract fun decrementAndGet(delta: UInt): UInt
Link copied to clipboard
abstract fun getAndDecrement(delta: UInt): UInt
Link copied to clipboard
abstract fun getAndIncrement(delta: UInt): UInt
Link copied to clipboard
abstract fun getAndSet(value: UInt): UInt
Link copied to clipboard
abstract fun incrementAndGet(delta: UInt): UInt

Inherited functions

Link copied to clipboard
operator fun AtomicUInt.minusAssign(delta: UInt)

Operator -= for AtomicUInt.

Link copied to clipboard
operator fun AtomicUInt.plusAssign(delta: UInt)

Operator += for AtomicUInt.

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

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

Link copied to clipboard
inline fun AtomicUInt.updateAndGet(block: (UInt) -> UInt): UInt

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