namespace MemoryPools.Collections.Specialized
{
///
/// Poolinq queue stores items in buckets of 256 size, who linked with linked list.
/// Nodes of this list and storage (array[256])
/// ** NOT THREAD SAFE **
/// Enqueue, dequeue: O(1).
///
/// Items should be classes because underlying collection stores object type
public sealed class PoolingQueueVal : PoolingQueue where T : struct
{
protected override IPoolingNode CreateNodeHolder()
{
return Pool>.Get().Init(PoolsDefaults.DefaultPoolBucketSize);
}
}
}