POOL Module
Application Program Interface
2-289
#pragma DATA_ALIGN(staticBuf0, 8) /* As required */
#pragma DATA_ALIGN(staticBuf1, 8) /* As required */
static Char staticBuf0[MSGSIZE0 * NUMMSGS];
static Char staticBuf1[MSGSIZE1 * NUMMSGS];
static MQASTATIC_Params poolParams0 = {staticBuf0,
sizeof(staticBuf0), MSGSIZE0};
static MQASTATIC_Params poolParams1 = {staticBuf1,
sizeof(staticBuf1), MSGSIZE1};
static STATICPOOL_Obj poolObj0, poolObj1;
static POOL_Obj allocators[NUMALLOCATORS] =
{{STATICPOOL_init, (POOL_Fxns *)&STATICPOOL_FXNS,
&poolParams0, &poolObj0}
{{STATICPOOL_init, (POOL_Fxns *)&STATICPOOL_FXNS,
&poolParams1, &poolObj1}};
POOL_Config POOL_config =
{allocators, NUMALLOCATORS};
POOL Manager
Properties
To configure the POOL manager, the POOL_Config structure must be
defined in the application code. See “Static Configuration” on page 2-286.
The following global property must also be set in order to use the POOL
module:
❏
Enable POOL Manager
. If ENABLEPOOL is TRUE, each allocator
specified in the POOL_config structure (see “Static Configuration” on
page 2-286) is initialized and opened.
Tconf Name: ENABLEPOOL
Type: Bool
Example:
bios.POOL.ENABLEPOOL = true;