Searched refs:CLOSED_MASK (Results 1 – 1 of 1) sorted by relevance
96 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() constant305 fun Long.addFailReason(): Int = if (this and CLOSED_MASK != 0L) ADD_CLOSED else ADD_FROZEN in isClosed()