Blender  V2.93
Public Attributes | List of all members
BLI_mempool Struct Reference

Public Attributes

BLI_mempool_chunkchunks
 
BLI_mempool_chunkchunk_tail
 
uint esize
 
uint csize
 
uint pchunk
 
uint flag
 
BLI_freenodefree
 
uint maxchunks
 
uint totused
 

Detailed Description

The mempool, stores and tracks memory chunks and elements within those chunks free.

Definition at line 112 of file BLI_mempool.c.

Member Data Documentation

◆ chunk_tail

BLI_mempool_chunk* BLI_mempool::chunk_tail

Keep a pointer to the last, so we can append new chunks there this is needed for iteration so we can loop over chunks in the order added.

Definition at line 117 of file BLI_mempool.c.

◆ chunks

BLI_mempool_chunk* BLI_mempool::chunks

Single linked list of allocated chunks.

Definition at line 114 of file BLI_mempool.c.

◆ csize

uint BLI_mempool::csize

Chunk size in bytes.

Definition at line 122 of file BLI_mempool.c.

◆ esize

uint BLI_mempool::esize

Element size in bytes.

Definition at line 120 of file BLI_mempool.c.

Referenced by BLI_mempool_iterstep().

◆ flag

uint BLI_mempool::flag

◆ free

BLI_freenode* BLI_mempool::free

Free element list. Interleaved into chunk datas.

Definition at line 129 of file BLI_mempool.c.

◆ maxchunks

uint BLI_mempool::maxchunks

Use to know how many chunks to keep for BLI_mempool_clear.

Definition at line 131 of file BLI_mempool.c.

◆ pchunk

uint BLI_mempool::pchunk

Number of elements per chunk.

Definition at line 124 of file BLI_mempool.c.

Referenced by BLI_mempool_iterstep().

◆ totused

uint BLI_mempool::totused

Number of elements currently in use.

Definition at line 133 of file BLI_mempool.c.


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