The allocator of elements in pool, it's invoked directly without new
Initial pool size, this size will also be the incremental size when the pool is overloaded
从对象池中取出一个对象。
An object ready for use. This function always return an object.
释放对象池中所有资源并清空缓存池。
The destructor function, it will be invoked for all elements in the pool
将一个对象放回对象池中。
The object to be put back into the pool
将一组对象放回对象池中。
An array of objects to be put back into the pool
Generated using TypeDoc
支持类型的对象池。这是一个传统设计的对象池,你可以从对象池中取出对象或是放回不再需要对象来复用。
RecyclePool