Atrinik Server 2.5
Data Fields
mempool Struct Reference

#include <mempool.h>

Data Fields

const char * chunk_description
uint32 expand_size
uint32 chunksize
uint32 flags
chunk_initialisator initialisator
chunk_deinitialisator deinitialisator
chunk_constructor constructor
chunk_destructor destructor
struct mempool_chunkfreelist [MEMPOOL_NROF_FREELISTS]
uint32 nrof_free [MEMPOOL_NROF_FREELISTS]
uint32 nrof_allocated [MEMPOOL_NROF_FREELISTS]
struct puddle_infofirst_puddle_info

Detailed Description

Data for a single memory pool

Definition at line 93 of file mempool.h.


Field Documentation

Description of chunks. Mostly for debugging

Definition at line 96 of file mempool.h.

size of chunks, excluding sizeof(mempool_chunk) and padding

Definition at line 102 of file mempool.h.

chunk_constructor mempool::constructor

Optional constructor to be called when getting chunks

Definition at line 114 of file mempool.h.

chunk_deinitialisator mempool::deinitialisator

Optional deinitialisator to be called when freeing

Definition at line 111 of file mempool.h.

chunk_destructor mempool::destructor

Optional destructor to be called when returning chunks

Definition at line 117 of file mempool.h.

How many chunks to allocate at each expansion

Definition at line 99 of file mempool.h.

List of puddles used for mempool tracking

Definition at line 129 of file mempool.h.

Special handling flags. See definitions below

Definition at line 105 of file mempool.h.

struct mempool_chunk* mempool::freelist[MEMPOOL_NROF_FREELISTS]

First free chunk

Definition at line 120 of file mempool.h.

chunk_initialisator mempool::initialisator

Optional initialisator to be called when expanding

Definition at line 108 of file mempool.h.

uint32 mempool::nrof_allocated[MEMPOOL_NROF_FREELISTS]

Number of allocated.

Definition at line 126 of file mempool.h.

uint32 mempool::nrof_free[MEMPOOL_NROF_FREELISTS]

Number of free.

Definition at line 123 of file mempool.h.


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