POOL Module
Application Program Interface
2-285
2.18
POOL Module
The POOL module describes the interface that allocators must provide.
Functions
None; this module describes an interface to be implemented by
allocators
Constants, Types, and
Structures
POOL_Config POOL_config;
typedef struct POOL_Config {
POOL_Obj *allocators; /* Array of allocators */
Uint16 numAllocators; /* Num of allocators */
} POOL_Config;
typedef struct POOL_Obj {
POOL_Init initFxn; /* Allocator init function */
POOL_Fxns *fxns; /* Interface functions */
Ptr params; /* Setup parameters */
Ptr object; /* Allocator’s object */
} POOL_Obj, *POOL_Handle;
Configuration
Properties
The following list shows the properties that can be configured in a Tconf
script, along with their types and default values. For details, see the
POOL Manager Properties heading. For descriptions of data types, see
Section 1.4,
Module Configuration Parameters
Description
The POOL module describes standard interface functions that allocators
must provide. The allocator interface functions are called internally by the
MSGQ module and not by user applications. A simple static allocator,
called STATICPOOL, is provided with DSP/BIOS. Other allocators can
be implemented by following the standard interface.
Note:
This document does not discuss how to write an allocator.
Information about designing allocators will be provided in a future
document.
All messages sent via the MSGQ module must be allocated by an
allocator. The allocator determines where and how the memory for the
message is allocated.
An allocator is an instance of an implementation of the allocator interface.
An application may instantiate one or more instances of an allocator.
Name
Type
Default (Enum Options)
ENABLEPOOL
Bool
false