Searched refs:addLastIf (Results 1 – 11 of 11) sorted by relevance
40 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()
46 … 1 -> assertTrue(list.addLastIf(node!!, { true })) // just to test conditional add in <lambda>()48 assertFalse(list.addLastIf(node!!, { false })) in <lambda>()
115 assertTrue(list.addLastIf(node) { true }) in <lambda>()119 assertFalse(list.addLastIf(node) { false }) in <lambda>()
18 …public inline fun addLastIf(node: LockFreeLinkedListNode, crossinline condition: () -> Boolean): B… in addLast() method in kotlinx.coroutines.internal.LockFreeLinkedListNode
64 public inline fun addLastIf(node: T, cond: (T?) -> Boolean): Boolean = synchronized(this) { in <lambda>() method in kotlinx.coroutines.internal.ThreadSafeHeap
212 if (state.addLastIf(waiter) { _state.value === state }) { in toString()254 if (state.addLastIf(node) { _state.value === state }) { in toString()
51 public inline fun addLastIf(node: Node, crossinline condition: () -> Boolean): Boolean { in addLastIf() method in kotlinx.coroutines.internal.LinkedListNode
433 delayed.addLastIf(this) { firstTask -> in timeToExecute()
521 list.addLastIf(node) { this.state === expect } in <lambda>()
149 public actual inline fun addLastIf(node: Node, crossinline condition: () -> Boolean): Boolean { in <lambda>() method in kotlinx.coroutines.internal.LockFreeLinkedListNode