MemPool

Memory pool structure.

Synopsis

typedef struct MemPool {
   long numItemsInPool;
   long numFreeInPool;
   MemPoolEntryPtr availList;
   char data[4];
} MemPool, *MemPoolPtr

Description

A structure for keeping track of the state of a group of related blocks of memory

Fields

numItemsInPool
Total number allocated.
numFreeInPool
Current number of free entries.
availList
Pointer to first available entry.
data
Start of user data blocks.

Associated Files

MemPool.h