LockFreeTaskQueueCore

internal class LockFreeTaskQueueCore<E : Any>(val capacity: Int, val singleConsumer: Boolean)(source)

Lock-free Multiply-Producer xxx-Consumer Queue core.

Since

0.12.0

See also

Constructors

Link copied to clipboard
constructor(capacity: Int, singleConsumer: Boolean)

Types

Link copied to clipboard
internal object Companion
Link copied to clipboard
internal class Placeholder(val index: Int)

Properties

Link copied to clipboard
private val _next: AtomicReference<Core<E>?>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
private val capacity: Int
Link copied to clipboard
Link copied to clipboard
private val mask: Int
Link copied to clipboard
private val singleConsumer: Boolean
Link copied to clipboard
val size: Int

Functions

Link copied to clipboard
fun addLast(element: E): Int
Link copied to clipboard
private fun allocateNextCopy(state: Long): Core<E>
Link copied to clipboard
private fun allocateOrGetNextCopy(state: Long): Core<E>
Link copied to clipboard
fun close(): Boolean
Link copied to clipboard
private fun fillPlaceholder(index: Int, element: E): Core<E>?
Link copied to clipboard
Link copied to clipboard
fun <R> map(transform: (E) -> R): List<R>
Link copied to clipboard
private fun markFrozen(): Long
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
private fun removeSlowPath(oldHead: Int, newHead: Int): Core<E>?