Home
last modified time | relevance | path

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

/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/internal/
DLockFreeTaskQueue.kt96 if (state and CLOSED_MASK != 0L) return true // ok - already closed in close()
98 state or CLOSED_MASK // try set closed bit in close()
106 … if (state and (FROZEN_MASK or CLOSED_MASK) != 0L) return state.addFailReason() // cannot add in addLast()
261 fun isClosed(): Boolean = _state.value and CLOSED_MASK != 0L in isClosed()
284 const val CLOSED_MASK = 1L shl CLOSED_SHIFT in isClosed() constant
305 fun Long.addFailReason(): Int = if (this and CLOSED_MASK != 0L) ADD_CLOSED else ADD_FROZEN in isClosed()