Home
last modified time | relevance | path

Searched refs:removeFirstOrNull (Results 1 – 21 of 21) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/internal/
DLockFreeTaskQueueTest.kt39 assertEquals(1, q.removeFirstOrNull()) in <lambda>()
42 assertEquals(2, q.removeFirstOrNull()) in <lambda>()
54 assertEquals(3, q.removeFirstOrNull()) in <lambda>()
57 assertEquals(4, q.removeFirstOrNull()) in <lambda>()
72 assertEquals(i, q.removeFirstOrNull()) in <lambda>()
DThreadSafeHeapTest.kt40 assertEquals(n1, h.removeFirstOrNull()) in compareTo()
61 repeat(n) { assertEquals(Node(a[it]), h.removeFirstOrNull()) } in testRandomSort()
90 val headNode = h.removeFirstOrNull()!! // must not be null!!! in testRandomRemove()
DLockFreeLinkedListAddRemoveStressTest.kt31 val node = list.removeFirstOrNull() in testStressAddRemove()
DLockFreeLinkedListShortStressTest.kt68 val node = list.removeFirstOrNull() in <lambda>()
DLockFreeTaskQueueStressTest.kt66 val item = queue.removeFirstOrNull() in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/scheduling/
DCoroutineScheduler.kt358 ?: globalCpuQueue.removeFirstOrNull() in <lambda>()
359 ?: globalBlockingQueue.removeFirstOrNull() in <lambda>()
861 localQueue.poll() ?: globalBlockingQueue.removeFirstOrNull() in <lambda>()
863 globalBlockingQueue.removeFirstOrNull() in <lambda>()
886 globalCpuQueue.removeFirstOrNull()?.let { return it } in <lambda>()
887 return globalBlockingQueue.removeFirstOrNull() in <lambda>()
889 globalBlockingQueue.removeFirstOrNull()?.let { return it } in <lambda>()
890 return globalCpuQueue.removeFirstOrNull() in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/linearizability/
DLockFreeTaskQueueLCStressTest.kt30 fun removeFirstOrNull() = q.removeFirstOrNull() in close() method
DLockFreeListLCStressTest.kt34 val node = q.removeFirstOrNull() ?: return null in removeFirst()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/scheduling/
DWorkQueueTest.kt85 var task: Task? = removeFirstOrNull() in drain()
89 task = removeFirstOrNull() in drain()
/external/kotlinx.coroutines/kotlinx-coroutines-core/js/src/internal/
DLinkedList.kt76 public fun removeFirstOrNull(): Node? { in removeFirstOrNull() method in kotlinx.coroutines.internal.LinkedListNode
112 override fun onComplete() { queue.removeFirstOrNull() } in onComplete()
/external/kotlinx.coroutines/kotlinx-coroutines-core/native/src/internal/
DLinkedList.kt76 public fun removeFirstOrNull(): Node? { in removeFirstOrNull() method in kotlinx.coroutines.internal.LinkedListNode
112 override fun onComplete() { queue.removeFirstOrNull() } in onComplete()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/internal/
DLockFreeTaskQueue.kt57 fun removeFirstOrNull(): E? { in <lambda>() method
59 val result = cur.removeFirstOrNull() in <lambda>()
164 fun removeFirstOrNull(): Any? { in removeFirstOrNull() method
DArrayQueue.kt21 public fun removeFirstOrNull(): T? { in removeFirstOrNull() method in kotlinx.coroutines.internal.ArrayQueue
DLockFreeLinkedList.common.kt38 public fun removeFirstOrNull(): LockFreeLinkedListNode? in addLast() method in kotlinx.coroutines.internal.LockFreeLinkedListNode
DThreadSafeHeap.kt42 public fun removeFirstOrNull(): T? = synchronized(this) { in <lambda>() method in kotlinx.coroutines.internal.ThreadSafeHeap
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/
DEventLoop.common.kt68 val task = queue.removeFirstOrNull() ?: return false in <lambda>()
324 val result = (queue as Queue<Runnable>).removeFirstOrNull() in dequeue()
396 val delayedTask = _delayed.value?.removeFirstOrNull() ?: break in rescheduleAllDelayed()
/external/kotlinx.coroutines/kotlinx-coroutines-core/js/src/
DWindow.kt59 val element = current.removeFirstOrNull() ?: return in process()
DJSDispatcher.kt147 val element = removeFirstOrNull() ?: return@process in process()
/external/kotlinx.coroutines/kotlinx-coroutines-test/src/
DTestCoroutineDispatcher.kt170 pendingTasks += queue.removeFirstOrNull() ?: break in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/sync/
DMutex.kt316 val waiter = state.removeFirstOrNull() in toString()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/internal/
DLockFreeLinkedList.kt280 public actual fun removeFirstOrNull(): Node? { in <lambda>() method in kotlinx.coroutines.internal.LockFreeLinkedListNode