Searched refs:getAndUpdate (Results 1 – 7 of 7) sorted by relevance
111 public inline fun <T> AtomicRef<T>.getAndUpdate(function: (T) -> T): T { in getAndUpdate() method184 public inline fun AtomicBoolean.getAndUpdate(function: (Boolean) -> Boolean): Boolean { in getAndUpdate() method295 public inline fun AtomicInt.getAndUpdate(function: (Int) -> Int): Int { in getAndUpdate() method406 public inline fun AtomicLong.getAndUpdate(function: (Long) -> Long): Long { in getAndUpdate() method
157 public long getAndUpdate(K key, LongUnaryOperator updaterFunction) { in getAndUpdate() method in AtomicLongMap195 return getAndUpdate(key, oldValue -> accumulatorFunction.applyAsLong(oldValue, x)); in getAndAccumulate()204 return getAndUpdate(key, x -> newValue); in put()
34 assertEquals(refArr[0].getAndUpdate { cur -> action(cur) }!!.n, 5) in <lambda>()
70 top.getAndUpdate { cur -> cur?.next } ?.value in popUpdate()
183 val p = _availablePermits.getAndUpdate { cur -> in release()
11 * 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
239 val old = requested.getAndUpdate { value -> in request()