AtomicULong

interface AtomicULong(source)

Atomic ULong

Author

ForteScarlet

Properties

Link copied to clipboard
abstract var value: ULong

Functions

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

Inherited functions

Link copied to clipboard
operator fun AtomicULong.minusAssign(delta: ULong)

Operator -= for AtomicULong.

Link copied to clipboard
operator fun AtomicULong.plusAssign(delta: ULong)

Operator += for AtomicULong.

Link copied to clipboard
inline fun AtomicULong.update(block: (ULong) -> ULong): ULong

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

Link copied to clipboard
inline fun AtomicULong.updateAndGet(block: (ULong) -> ULong): ULong

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