libaramid
Portable Multiprocessing Library for C
|
Abstract memory allocator. More...
#include <aramid.h>
Public Attributes | |
void * | context |
Memory allocator context. More... | |
ARMD_MemoryAllocatorAllocateFunc | allocate |
Memory allocation function. | |
ARMD_MemoryAllocatorFreeFunc | free |
Memory free function. | |
Abstract memory allocator.
It provides the capability of switching malloc implementation or injecting your own memory allocation algorithm. this struct is used not like a reference but like a value. That is, the members of ARMD_MemoryAllocator are copied into another ARMD_MemoryAllocator.
void* TAG_ARMD_MemoryAllocator::context |
Memory allocator context.
The pointer passed to ARMD_MemoryAllocatorAllocateFunc allocate and ARMD_MemoryAllocatorFreeFunc free