#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "hypool.h"
Functions | |
UDATA VMCALL | pool_ensureCapacity (HyPool *aPool, UDATA newCapacity) |
Ensures that the pool is large enough for newCapacity elements. | |
UDATA VMCALL | pool_capacity (HyPool *aPool) |
Returns the total capacity of a pool. |
|
Returns the total capacity of a pool.
|
|
Ensures that the pool is large enough for newCapacity elements. This has the side effect of setting the POOL_NEVER_FREE_PUDDLES flag. Without this, the pool could shrink back down to its original size. Note that this does not take into account the number of elements already used in the pool.
|