Home
last modified time | relevance | path

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

/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/lincheck/
DLockFreeTaskQueueLincheckTest.kt19 val singleConsumer: Boolean constant in kotlinx.coroutines.lincheck.AbstractLockFreeTaskQueueWithoutRemoveLincheckTest
22 protected val q = LockFreeTaskQueue<Int>(singleConsumer = singleConsumer)
37 …thRemoveLincheckTest : AbstractLockFreeTaskQueueWithoutRemoveLincheckTest(singleConsumer = false) { in close()
43 …ithRemoveLincheckTest : AbstractLockFreeTaskQueueWithoutRemoveLincheckTest(singleConsumer = true) {
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/internal/
DLockFreeTaskQueue.kt31singleConsumer: Boolean // true when there is only a single consumer (slightly faster & lock-free) in <lambda>()
33 private val _cur = atomic(Core<E>(Core.INITIAL_CAPACITY, singleConsumer)) in <lambda>()
78 … private val singleConsumer: Boolean // true when there is only a single consumer (slightly faster) constant in LockFreeTaskQueueCore
114 if (!singleConsumer && array[tail and mask].value != null) { in addLast()
172 if (singleConsumer) return null // consider it not added yet in removeFirstOrNull()
187 if (!singleConsumer) return@loop in removeFirstOrNull()
230 val next = LockFreeTaskQueueCore<E>(capacity * 2, singleConsumer) in allocateNextCopy()
DLimitedDispatcher.kt35 private val queue = LockFreeTaskQueue<Runnable>(singleConsumer = false) in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/internal/
DLockFreeTaskQueueTest.kt14 private val singleConsumer: Boolean in <lambda>() constant in kotlinx.coroutines.internal.LockFreeTaskQueueTest
27 val q = LockFreeTaskQueue<Int>(singleConsumer) in <lambda>()
65 val q = LockFreeTaskQueue<Int>(singleConsumer) in <lambda>()
DLockFreeTaskQueueStressTest.kt26 private val singleConsumer = nConsumers == 1 in <lambda>() constant
50 queue.value = LockFreeTaskQueue(singleConsumer) in <lambda>()
72 if (singleConsumer) { in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/scheduling/
DTasks.kt114 internal class GlobalQueue : LockFreeTaskQueue<Task>(singleConsumer = false) in toString()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/
DEventLoop.common.kt314 … val newQueue = Queue<Runnable>(Queue.INITIAL_CAPACITY, singleConsumer = true) in enqueueImpl()
355 … val newQueue = Queue<Runnable>(Queue.INITIAL_CAPACITY, singleConsumer = true) in closeQueue()