Companion

internal object Companion(source)

Properties

Link copied to clipboard
const val ADD_CLOSED: Int = 2
Link copied to clipboard
const val ADD_FROZEN: Int = 1
Link copied to clipboard
const val ADD_SUCCESS: Int = 0
Link copied to clipboard
const val CAPACITY_BITS: Int = 30
Link copied to clipboard
const val CLOSED_MASK: Long
Link copied to clipboard
const val CLOSED_SHIFT: Int
Link copied to clipboard
const val FROZEN_MASK: Long
Link copied to clipboard
const val FROZEN_SHIFT: Int
Link copied to clipboard
const val HEAD_MASK: Long
Link copied to clipboard
const val HEAD_SHIFT: Int = 0
Link copied to clipboard
const val INITIAL_CAPACITY: Int = 8
Link copied to clipboard
Link copied to clipboard
const val MIN_ADD_SPIN_CAPACITY: Int = 1024
Link copied to clipboard
Link copied to clipboard
const val TAIL_MASK: Long
Link copied to clipboard
const val TAIL_SHIFT: Int

Functions

Link copied to clipboard
Link copied to clipboard
fun Long.updateHead(newHead: Int): Long
Link copied to clipboard
fun Long.updateTail(newTail: Int): Long
Link copied to clipboard
inline fun <T> Long.withState(block: (head: Int, tail: Int) -> T): T
Link copied to clipboard
infix fun Long.wo(other: Long): Long