Home
last modified time | relevance | path

Searched refs:updateAndGet (Results 1 – 5 of 5) sorted by relevance

/external/kotlinx.atomicfu/atomicfu/src/commonMain/kotlin/kotlinx/atomicfu/
DAtomicFU.common.kt122 public inline fun <T> AtomicRef<T>.updateAndGet(function: (T) -> T): T { in updateAndGet() method
195 public inline fun AtomicBoolean.updateAndGet(function: (Boolean) -> Boolean): Boolean { in updateAndGet() method
306 public inline fun AtomicInt.updateAndGet(function: (Int) -> Int): Int { in updateAndGet() method
417 public inline fun AtomicLong.updateAndGet(function: (Long) -> Long): Long { in updateAndGet() method
/external/guava/guava/src/com/google/common/util/concurrent/
DAtomicLongMap.java143 public long updateAndGet(K key, LongUnaryOperator updaterFunction) { in updateAndGet() method in AtomicLongMap
181 return updateAndGet(key, oldValue -> accumulatorFunction.applyAsLong(oldValue, x)); in accumulateAndGet()
/external/kotlinx.atomicfu/atomicfu/src/commonTest/kotlin/kotlinx/atomicfu/test/
DArrayElementInlineFuncTest.kt41 assertEquals(refArr[0].updateAndGet { cur -> action(cur) }!!.n, 50) in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/internal/
DLockFreeTaskQueue.kt217 _state.updateAndGet { state -> in next()
/external/kotlinx.atomicfu/
DREADME.md11 * Use Kotlin-specific extensions (e.g. inline `updateAndGet` and `getAndUpdate` functions).
58 Use high-level `update`, `updateAndGet`, and `getAndUpdate`,