Constructor
Recycles all items in the pool.
Deletes item and sets it to null.
Ensures that the pool contains at least the specified number of items. Useful to pre-allocate a pool of a certain size.
Gets the object pool index of item.
Takes an idle item from the pool or creates a new one if all items are busy or the pool is empty.
Checks if item is currently busy.
Checks if item is null.
Checks a and b for identity.
Returns the number of items in pool.
Returns the limit of number of items in pool or unlimited if currently unlimited.
Returns the number of busy items in pool.
Returns the number of idle items in pool.
Obtains the n-th pool item. n must be less than the value returned by length().
Puts item back to the pool.
Resets item.
Sets the object pool index to item.
Sets the limit of number of items in pool or disables limitation for limit = unlimited. When limiting the pool, any excess idle items are reset and deleted.
Removes idle items from the pool. Excess idle items are reset and deleted.
Pool item union. The list of pool items is an array of Item; the subclass specifies which member is actually used.
List of items (objects) in pool, busy items first
May be set to true at any time to limit the number of items in pool to the current number or to false to disable limitation.
Number of busy items in pool
Returns the number of items in pool.
Returns the number of busy items in pool.
Core pool implementation.