ucx
UAP Common Extensions
Loading...
Searching...
No Matches
Data Fields
cx_mempool_s Struct Reference

The basic structure of a memory pool. More...

#include <mempool.h>

Data Fields

CxAllocator const * allocator
 The provided allocator.
 
cx_destructor_func auto_destr
 A destructor that shall be automatically registered for newly allocated memory.
 
struct cx_mempool_memory_s ** data
 Array of pooled memory.
 
size_t size
 Number of pooled memory items.
 
size_t capacity
 Memory pool capacity.
 

Detailed Description

The basic structure of a memory pool.

Should be the first member of an actual memory pool implementation.

Field Documentation

◆ auto_destr

cx_destructor_func cx_mempool_s::auto_destr

A destructor that shall be automatically registered for newly allocated memory.

This destructor MUST NOT free the memory.


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