Class FixedPreInitializedPool<T>
- Namespace
- AlgorithmsSW.Pool
- Assembly
- AlgorithmsSW.dll
public class FixedPreInitializedPool<T>
Type Parameters
T
- Inheritance
-
FixedPreInitializedPool<T>
- Inherited Members
- Extension Methods
Constructors
FixedPreInitializedPool(IFactory<T>, int)
public FixedPreInitializedPool(IFactory<T> factory, int capacity)
Parameters
Properties
AliveElementCount
public int AliveElementCount { get; }
Property Value
AsleepElementCount
public int AsleepElementCount { get; }
Property Value
Capacity
public int Capacity { get; }
Property Value
Methods
Get()
public T Get()
Returns
- T
Return(T)
public void Return(T element)
Parameters
element
T