MemPoolPtr CreateMemPool (long numToPreallocate, long sizeOfEntry)
CreateMemPool()
to create the memory pool in which data chunks are stored. The DataStreamer kernel thread calls CreateMemPool()
to create the memory pool allocated to subscriber and data messages that are used to pass the data chunks out to various subscribers.
Each memory pool is a MemPool
data structure containing pool entry-table information and memory buffer entries. CreateMemPool()
creates a new memory pool with the specified number and size of entries.
CreateMemPool()
creates each memory pool by calling malloc()
directly. Memory pools must be sized in multiples of four bytes (a full data word).
numToPreallocate
sizeOfEntry
DeleteMemPool
, InitDataAcq, InitDataStreaming