Home
last modified time | relevance | path

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

/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/internal/
DLockFreeLinkedListTest.kt40 assertTrue(list.addLastIf(IntNode(1)) { true }) in testCondOps()
42 assertFalse(list.addLastIf(IntNode(2)) { false }) in testCondOps()
44 assertTrue(list.addLastIf(IntNode(3)) { true }) in testCondOps()
46 assertFalse(list.addLastIf(IntNode(4)) { false }) in testCondOps()
DLockFreeLinkedListShortStressTest.kt46 … 1 -> assertTrue(list.addLastIf(node!!, { true })) // just to test conditional add in <lambda>()
48 assertFalse(list.addLastIf(node!!, { false })) in <lambda>()
DLockFreeLinkedListAtomicLFStressTest.kt115 assertTrue(list.addLastIf(node) { true }) in <lambda>()
119 assertFalse(list.addLastIf(node) { false }) in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/internal/
DLockFreeLinkedList.common.kt18 …public inline fun addLastIf(node: LockFreeLinkedListNode, crossinline condition: () -> Boolean): B… in addLast() method in kotlinx.coroutines.internal.LockFreeLinkedListNode
DThreadSafeHeap.kt64 public inline fun addLastIf(node: T, cond: (T?) -> Boolean): Boolean = synchronized(this) { in <lambda>() method in kotlinx.coroutines.internal.ThreadSafeHeap
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/sync/
DMutex.kt212 if (state.addLastIf(waiter) { _state.value === state }) { in toString()
254 if (state.addLastIf(node) { _state.value === state }) { in toString()
/external/kotlinx.coroutines/kotlinx-coroutines-core/js/src/internal/
DLinkedList.kt51 public inline fun addLastIf(node: Node, crossinline condition: () -> Boolean): Boolean { in addLastIf() method in kotlinx.coroutines.internal.LinkedListNode
/external/kotlinx.coroutines/kotlinx-coroutines-core/native/src/internal/
DLinkedList.kt51 public inline fun addLastIf(node: Node, crossinline condition: () -> Boolean): Boolean { in addLastIf() method in kotlinx.coroutines.internal.LinkedListNode
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/
DEventLoop.common.kt433 delayed.addLastIf(this) { firstTask -> in timeToExecute()
DJobSupport.kt521 list.addLastIf(node) { this.state === expect } in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/internal/
DLockFreeLinkedList.kt149 public actual inline fun addLastIf(node: Node, crossinline condition: () -> Boolean): Boolean { in <lambda>() method in kotlinx.coroutines.internal.LockFreeLinkedListNode