Home
last modified time | relevance | path

Searched refs:CoroutineScheduler (Results 1 – 9 of 9) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/scheduling/
DCoroutineSchedulerTest.kt19 CoroutineScheduler(1, 1).use { in <lambda>()
33 CoroutineScheduler(2, 2).use { in <lambda>()
49 CoroutineScheduler(1, 1).use { in <lambda>()
73 CoroutineScheduler(1, 1).use { in <lambda>()
97 CoroutineScheduler(1, 128).use { scheduler -> in <lambda>()
155 private fun testUniformDistribution(worker: CoroutineScheduler.Worker, bound: Int) { in <lambda>()
DCoroutineDispatcherTest.kt25 require(Thread.currentThread() is CoroutineScheduler.Worker) in <lambda>()
135 .count { it is CoroutineScheduler.Worker && it.name.contains("SomeTestName") } in <lambda>()
143 .count { it is CoroutineScheduler.Worker && it.name.contains("SomeTestName") } in <lambda>()
DCoroutineSchedulerLivenessStressTest.kt8 import kotlinx.coroutines.scheduling.CoroutineScheduler.Companion.MAX_SUPPORTED_POOL_SIZE
13 …private val scheduler = lazy { CoroutineScheduler(CORE_POOL_SIZE, MAX_SUPPORTED_POOL_SIZE, Long.MA… in <lambda>()
DSchedulerTestBase.kt46 …eads = Thread.getAllStackTraces().keys.asSequence().filter { it is CoroutineScheduler.Worker }.cou… in checkPoolThreadsExist()
51 … return Thread.getAllStackTraces().keys.asSequence().filter { it is CoroutineScheduler.Worker } in maxSequenceNumber()
DBlockingCoroutineDispatcherMixedStealingStressTest.kt66 && it is CoroutineScheduler.Worker } in testBlockingProgressPreventedExternal()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/scheduling/
DTasks.kt36 minValue = CoroutineScheduler.MIN_SUPPORTED_POOL_SIZE
44 CoroutineScheduler.MAX_SUPPORTED_POOL_SIZE
46 maxValue = CoroutineScheduler.MAX_SUPPORTED_POOL_SIZE
DCoroutineScheduler.kt92 internal class CoroutineScheduler( in <lambda>() class
597 inline val scheduler get() = this@CoroutineScheduler in <lambda>()
646 this@CoroutineScheduler.tryAcquireCpuPermit() -> { in <lambda>()
961 internal fun isSchedulerWorker(thread: Thread) = thread is CoroutineScheduler.Worker
969 internal fun mayNotBlock(thread: Thread) = thread is CoroutineScheduler.Worker &&
970 thread.state == CoroutineScheduler.WorkerState.CPU_ACQUIRED
DDispatcher.kt124 …private fun createScheduler() = CoroutineScheduler(corePoolSize, maxPoolSize, idleWorkerKeepAliveN… in toString()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/
DRejectedExecutionTest.kt162 … if (thread !is CoroutineScheduler.Worker) error("Not a thread from Dispatchers.Default: $thread") in <lambda>()
163 assertEquals(CoroutineScheduler.WorkerState.CPU_ACQUIRED, thread.state) in <lambda>()
168 if (thread !is CoroutineScheduler.Worker) error("Not a thread from Dispatchers.IO: $thread") in <lambda>()
169 assertEquals(CoroutineScheduler.WorkerState.BLOCKING, thread.state) in <lambda>()