Home
last modified time | relevance | path

Searched refs:BUFFER_CAPACITY (Results 1 – 2 of 2) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/scheduling/
DWorkQueue.kt12 internal const val BUFFER_CAPACITY = 1 shl BUFFER_CAPACITY_BASE constant
13 internal const val MASK = BUFFER_CAPACITY - 1 // 128 by default
54 private val buffer: AtomicReferenceArray<Task?> = AtomicReferenceArray(BUFFER_CAPACITY)
84 if (bufferSize == BUFFER_CAPACITY - 1) return task in addLast()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/scheduling/
DWorkQueueStressTest.kt43 while (producerQueue.bufferSize > BUFFER_CAPACITY / 2) { in testStealing()
80 while (producerQueue.bufferSize == BUFFER_CAPACITY - 1) { in testSingleProducerSingleStealer()