# AllocPoolMem

Allocates a memory pool entry.

### Synopsis

`void* AllocPoolMem (MemPoolPtr memPool)`

### Description

Allocates a memory pool entry (memory buffer). An acquisition thread calls `AllocMemPool()` to allocate the entries in which data chunks are stored. The DataStreamer kernel thread calls `CreateMemPool()` to create the entries allocated to subscriber and data messages, which are used to pass out the data chunks to various subscribers.

### Arguments

`memPool`
  Memory pool from which `AllocPoolMem()` requests an entry.

### Return Value

Value
  Error Condition

(First free entry in memory pool)
  None

NULL
  No available entries

### Associated Files

MemPool.h

### See Also

`CreateMemPool`, AllocPoolMem