libaramid
Portable Multiprocessing Library for C
Public Attributes | List of all members
TAG_ARMD_MemoryAllocator Struct Reference

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.
 

Detailed Description

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.

Member Data Documentation

◆ context

void* TAG_ARMD_MemoryAllocator::context

Memory allocator context.

The pointer passed to ARMD_MemoryAllocatorAllocateFunc allocate and ARMD_MemoryAllocatorFreeFunc free


The documentation for this struct was generated from the following file: