Home
last modified time | relevance | path

Searched refs:getAndUpdate (Results 1 – 7 of 7) sorted by relevance

/external/kotlinx.atomicfu/atomicfu/src/commonMain/kotlin/kotlinx/atomicfu/
DAtomicFU.common.kt111 public inline fun <T> AtomicRef<T>.getAndUpdate(function: (T) -> T): T { in getAndUpdate() method
184 public inline fun AtomicBoolean.getAndUpdate(function: (Boolean) -> Boolean): Boolean { in getAndUpdate() method
295 public inline fun AtomicInt.getAndUpdate(function: (Int) -> Int): Int { in getAndUpdate() method
406 public inline fun AtomicLong.getAndUpdate(function: (Long) -> Long): Long { in getAndUpdate() method
/external/guava/guava/src/com/google/common/util/concurrent/
DAtomicLongMap.java157 public long getAndUpdate(K key, LongUnaryOperator updaterFunction) { in getAndUpdate() method in AtomicLongMap
195 return getAndUpdate(key, oldValue -> accumulatorFunction.applyAsLong(oldValue, x)); in getAndAccumulate()
204 return getAndUpdate(key, x -> newValue); in put()
/external/kotlinx.atomicfu/atomicfu/src/commonTest/kotlin/kotlinx/atomicfu/test/
DArrayElementInlineFuncTest.kt34 assertEquals(refArr[0].getAndUpdate { cur -> action(cur) }!!.n, 5) in <lambda>()
DLockFreeStackTest.kt70 top.getAndUpdate { cur -> cur?.next } ?.value in popUpdate()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/sync/
DSemaphore.kt183 val p = _availablePermits.getAndUpdate { cur -> in release()
/external/kotlinx.atomicfu/
DREADME.md11 * Use Kotlin-specific extensions (e.g. inline `updateAndGet` and `getAndUpdate` functions).
58 Use high-level `update`, `updateAndGet`, and `getAndUpdate`,
63 fun pop(): Value? = top.getAndUpdate { cur -> cur?.next } ?.value
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-reactive/src/
DReactiveFlow.kt239 val old = requested.getAndUpdate { value -> in request()