This function of the CAA_MemBlockMan.Library creates a pool object and initializes ctNumBlocks of size szBlockSize by value 0. These blocks can be requested by MBM.PoolGetBlock and are returned via MBM.PoolRelBlock. If no callback should be made, for eEmpty the value CB.gc_cbNULL must be passed.
ctNumBlocks |
CAA.COUNT |
Number of blocks in the pool. |
szBlockSize |
CAA.SIZE |
Size of a certain block. |
eEmpty |
CB.EVENT |
Event, if the pool is empty Parameter is Poolhandle: hPool. |
peError |
POINTER TO MBM.ERROR |
Pointer on error ID. |
hPool |
CAA.HANDLE |
Handle of the block pool. |