LinkedPool<T>
Store pooled objects using links in the objects themselves. TryPush and TryPop return false on contention.
public struct LinkedPool<T>
where T : class, ILinkedPoolNode<T>MotionCollections.cs · L55Members
Size
Number of nodes currently stored in the pool.
public readonly int Size { get; }TryPush
Push an unlinked node at the head. Null, linked nodes or contention return false.
public bool TryPush(T item)Parameters and return value
itemTEntry operated on by the collection.- Returns
bool
TryPop
Remove and unlink the head node. Return false if empty or contended.
public bool TryPop(out T result)Parameters and return value
resultout TReceives the popped node.- Returns
bool
MeatMotion