Home
last modified time | relevance | path

Searched refs:booleanArr (Results 1 – 3 of 3) sorted by relevance

/external/kotlinx.atomicfu/atomicfu/src/commonTest/kotlin/kotlinx/atomicfu/test/
DAtomicArrayTest.kt60 check(!A.booleanArr[1].value) in testBooleanArray()
61 A.booleanArr[1].compareAndSet(false, true) in testBooleanArray()
62 A.booleanArr[0].lazySet(true) in testBooleanArray()
63 check(!A.booleanArr[2].getAndSet(true)) in testBooleanArray()
64 check(A.booleanArr[0].value && A.booleanArr[1].value && A.booleanArr[2].value) in testBooleanArray()
65 A.booleanArr[0].value = false in testBooleanArray()
66 check(!A.booleanArr[0].value) in testBooleanArray()
114 val booleanArr = AtomicBooleanArray(10) constant in kotlinx.atomicfu.test.AtomicArrayClass
DTopLevelTest.kt18 private val booleanArr = AtomicBooleanArray(4) in <lambda>() constant
147 check(!booleanArr[1].value) in testBooleanArray()
148 booleanArr[1].compareAndSet(false, true) in testBooleanArray()
149 booleanArr[0].lazySet(true) in testBooleanArray()
150 check(!booleanArr[2].getAndSet(true)) in testBooleanArray()
151 check(booleanArr[0].value && booleanArr[1].value && booleanArr[2].value) in testBooleanArray()
DSetArrayElementTest.kt30 private val booleanArr = AtomicBooleanArray(4) constant
34 fun setBoolean(index: Int, data: Boolean) = booleanArr[index].compareAndSet(false, data) in setInt()