Gets a memory block from specified pool, growing it if needed.
Files
lib_mem.h/lib_mem.c
Prototype
Code Block | ||
---|---|---|
Language | C++ | CaptionText | CAPTION
| ||
void *Mem_DynPoolBlkGet (MEM_DYN_POOL *p_pool, LIB_ERR *p_err) |
...
Required Configuration
None.
Notes / Warnings
...
- If there is no block available in the pool when calling this function, it will attempt to allocate a new one on the pool segment.
- An usage example of this function is available on Dynamic Memory Pools page.