SYS/BIOS
7.00
|
#include <ti/sysbios/heaps/HeapMultiBuf.h>
Data Fields | |
bool | blockBorrow |
Turn block borrowing on (true) or off (false) More... | |
int | numBufs |
Number of memory buffers. More... | |
HeapBuf_Params * | bufParams |
Config parameters for each buffer. More... | |
bool HeapMultiBuf_Params::blockBorrow |
Turn block borrowing on (true) or off (false)
With block borrowing on, if there are no blocks available of the requested size, then alloc will look for a larger block to return. Calls to alloc which borrow blocks will be slower, and will cause internal fragmentation of the heap (until the block is freed), so it is ideal to configure a HeapMultiBuf such that block borrowing is not needed.
int HeapMultiBuf_Params::numBufs |
Number of memory buffers.
The number of different fixed size memory buffers that are managed by the heap instance. The bufParams array has length numBufs.
The default number of buffers is 0.
HeapBuf_Params* HeapMultiBuf_Params::bufParams |
Config parameters for each buffer.
Each buffer in a HeapMultiBuf is in fact managed by a HeapBuf instance. Configuration of a HeapMultiBuf is done by providing an array of configured HeapBuf parameter structures. Refer to the HeapBuf documentation for information on the buffer parameters. All of the documentation and parameters for HeapBuf apply to HeapMultiBuf. If a buffer is configured incorrectly, HeapBuf, not HeapMultiBuf, will raise an Assert.