freeList.h

Allocate and free fixed size memory elements.

Describes routines to allocate and free fixed size memory elements. Free elements are maintained on a free list rather than being returned to the heap via calls to free. When it is necessary to call malloc(), memory is allocated in multiples of the element size.

Author

Marty Kraimer

Functions

void freeListInitPvt(void **ppvt, int size, int malloc)
void *freeListCalloc(void *pvt)
void *freeListMalloc(void *pvt)
void freeListFree(void *pvt, void *pmem)
void freeListCleanup(void *pvt)
size_t freeListItemsAvail(void *pvt)

Variables

int freeListBypass