ConcurrentPool

open class ConcurrentPool<T : Any>(reset: (T) -> Unit = {}, preallocate: Int = 0, gen: (Int) -> T) : Pool<T>

Constructors

Link copied to clipboard
constructor(reset: (T) -> Unit = {}, preallocate: Int = 0, gen: (Int) -> T)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun alloc(): T
inline fun <R> alloc(callback: (T) -> R): R
Link copied to clipboard
inline fun <R> alloc2(callback: (T, T) -> R): R
Link copied to clipboard
inline fun <R> alloc3(callback: (T, T, T) -> R): R
Link copied to clipboard
inline fun <R> allocMultiple(count: Int, temp: FastArrayList<T> = FastArrayList(), callback: (FastArrayList<T>) -> R): R
Link copied to clipboard
inline fun <R> allocThis(callback: T.() -> R): R
Link copied to clipboard
open override fun clear()
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun free(element: T)
fun free(vararg elements: T)
fun free(elements: Iterable<T>)
fun free(elements: List<T>)
Link copied to clipboard
fun freeNotNull(element: T?)
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
inline operator fun <R> invoke(callback: (T) -> R): R