amino
1.0-beta2
Lightweight Robot Utility Library
|
Data Structure for Object pools. More...
#include <mem.h>
Public Attributes | |
size_t | size |
size of each element | |
void * | top |
top of list of free elements | |
aa_mem_region_t | region |
memory region to allocate from | |
Data Structure for Object pools.
Memory pools provide fast allocation and deallocation of fixed-size objects.
This implimentation uses a memory region to allocation from, which allows fast deallocation of all objects in the pool.