ItemPool

Item pool structure.

Synopsis

typedef struct ItemPool {
   long numItemsInPool;
   void* itemDescBlockPtr;
   ItemDescPtr availList;
   ItemDescPtr inUseList;
} ItemPool, *ItemPoolPtr

Description

A structure for keeping track of the state of a group of related items.

Fields

numItemsInPool
Number allocated (not currently used).
itemDescBlockPtr
Pointer to block of allocated descriptors.
availList
Pointer to first available item descriptor.
inUseList
Pointer to first in-use item descriptor.

Associated Files

ItemPool.h