Home
last modified time | relevance | path

Searched refs:newHead (Results 1 – 11 of 11) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/flow/
DSharedFlow.kt446 val newHead = head + 1 in dropOldestLocked() constant
447 if (replayIndex < newHead) replayIndex = newHead in dropOldestLocked()
448 if (minCollectorIndex < newHead) correctCollectorIndexesOnDropOldest(newHead) in dropOldestLocked()
449 …assert { head == newHead } // since head = minOf(minCollectorIndex, replayIndex) it should have up… in dropOldestLocked()
452 private fun correctCollectorIndexesOnDropOldest(newHead: Long) { in correctCollectorIndexesOnDropOldest()
455 if (slot.index >= 0 && slot.index < newHead) { in correctCollectorIndexesOnDropOldest()
456 …slot.index = newHead // force move it up (this collector was too slow and missed the value at its … in correctCollectorIndexesOnDropOldest()
459 minCollectorIndex = newHead in correctCollectorIndexesOnDropOldest()
597 val newHead = minOf(newMinCollectorIndex, newReplayIndex) in updateBufferLocked() constant
598 assert { newHead >= head } in updateBufferLocked()
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/internal/
DLockFreeTaskQueue.kt179 val newHead = (head + 1) and MAX_CAPACITY_MASK in removeFirstOrNull() constant
180 if (_state.compareAndSet(state, state.updateHead(newHead))) { in removeFirstOrNull()
192 cur = cur.removeSlowPath(head, newHead) ?: return element in removeFirstOrNull()
198 private fun removeSlowPath(oldHead: Int, newHead: Int): Core<E>? { in removeSlowPath()
206 if (_state.compareAndSet(state, state.updateHead(newHead))) { in removeSlowPath()
295 fun Long.updateHead(newHead: Int) = (this wo HEAD_MASK) or (newHead.toLong() shl HEAD_SHIFT) in isClosed()
/external/guava/android/guava-tests/benchmark/com/google/common/util/concurrent/
DExecutionListBenchmark.java628 RunnableExecutorPair newHead = new RunnableExecutorPair(runnable, executor);
635 newHead.execute();
639 newHead.next = oldHead;
640 } while (!UNSAFE.compareAndSwapObject(this, HEAD_OFFSET, oldHead, newHead));
/external/guava/guava-tests/benchmark/com/google/common/util/concurrent/
DExecutionListBenchmark.java628 RunnableExecutorPair newHead = new RunnableExecutorPair(runnable, executor);
635 newHead.execute();
639 newHead.next = oldHead;
640 } while (!UNSAFE.compareAndSwapObject(this, HEAD_OFFSET, oldHead, newHead));
/external/kotlinx.atomicfu/atomicfu/src/nativeMain/kotlin/kotlinx/atomicfu/locks/
DSynchronized.kt215 val newHead = oldTop!!.pointed.next in pop() constant
216 if (top.compareAndSet(oldTop.rawValue, newHead.rawValue)) in pop()
/external/pdfium/third_party/lcms/src/
Dcmscnvrt.c105 _cmsIntentsPluginChunkType newHead = { NULL }; in DupPluginIntentsList() local
127 if (newHead.Intents == NULL) in DupPluginIntentsList()
128 newHead.Intents = newEntry; in DupPluginIntentsList()
131 …ctx ->chunks[IntentPlugin] = _cmsSubAllocDup(ctx->MemPool, &newHead, sizeof(_cmsIntentsPluginChunk… in DupPluginIntentsList()
Dcmsgamma.c74 _cmsCurvesPluginChunkType newHead = { NULL }; in DupPluginCurvesList() local
98 if (newHead.ParametricCurves == NULL) in DupPluginCurvesList()
99 newHead.ParametricCurves = newEntry; in DupPluginCurvesList()
102 …ctx ->chunks[CurvesPlugin] = _cmsSubAllocDup(ctx->MemPool, &newHead, sizeof(_cmsCurvesPluginChunkT… in DupPluginCurvesList()
Dcmsxform.c632 _cmsTransformPluginChunkType newHead = { NULL }; in DupPluginTransformList() local
654 if (newHead.TransformCollection == NULL) in DupPluginTransformList()
655 newHead.TransformCollection = newEntry; in DupPluginTransformList()
658 …ctx ->chunks[TransformPlugin] = _cmsSubAllocDup(ctx->MemPool, &newHead, sizeof(_cmsTransformPlugin… in DupPluginTransformList()
Dcmsopt.c1853 _cmsOptimizationPluginChunkType newHead = { NULL }; in DupPluginOptimizationList() local
1878 if (newHead.OptimizationCollection == NULL) in DupPluginOptimizationList()
1879 newHead.OptimizationCollection = newEntry; in DupPluginOptimizationList()
1882 …ctx ->chunks[OptimizationPlugin] = _cmsSubAllocDup(ctx->MemPool, &newHead, sizeof(_cmsOptimization… in DupPluginOptimizationList()
Dcmstypes.c5526 _cmsTagTypePluginChunkType newHead = { NULL }; in DupTagTypeList() local
5548 if (newHead.TagTypes == NULL) in DupTagTypeList()
5549 newHead.TagTypes = newEntry; in DupTagTypeList()
5552 ctx ->chunks[loc] = _cmsSubAllocDup(ctx->MemPool, &newHead, sizeof(_cmsTagTypePluginChunkType)); in DupTagTypeList()
5730 _cmsTagPluginChunkType newHead = { NULL }; in DupTagList() local
5752 if (newHead.Tag == NULL) in DupTagList()
5753 newHead.Tag = newEntry; in DupTagList()
5756 … ctx ->chunks[TagPlugin] = _cmsSubAllocDup(ctx->MemPool, &newHead, sizeof(_cmsTagPluginChunkType)); in DupTagList()
Dcmspack.c3725 _cmsFormattersPluginChunkType newHead = { NULL }; in DupFormatterFactoryList() local
3749 if (newHead.FactoryList == NULL) in DupFormatterFactoryList()
3750 newHead.FactoryList = newEntry; in DupFormatterFactoryList()
3753 …ctx ->chunks[FormattersPlugin] = _cmsSubAllocDup(ctx->MemPool, &newHead, sizeof(_cmsFormattersPlug… in DupFormatterFactoryList()