Blender  V3.3
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 97 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 102 of file BLI_mempool.c.

◆ chunks

BLI_mempool_chunk* BLI_mempool::chunks

Single linked list of allocated chunks.

Definition at line 99 of file BLI_mempool.c.

◆ csize

uint BLI_mempool::csize

Chunk size in bytes.

Definition at line 107 of file BLI_mempool.c.

◆ esize

uint BLI_mempool::esize

Element size in bytes.

Definition at line 105 of file BLI_mempool.c.

Referenced by BLI_mempool_iterstep(), and mempool_iter_threadsafe_step().

◆ flag

uint BLI_mempool::flag

◆ free

BLI_freenode* BLI_mempool::free

Free element list. Interleaved into chunk data.

Definition at line 114 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 116 of file BLI_mempool.c.

◆ pchunk

uint BLI_mempool::pchunk

Number of elements per chunk.

Definition at line 109 of file BLI_mempool.c.

Referenced by BLI_mempool_iterstep(), and mempool_iter_threadsafe_step().

◆ totused

uint BLI_mempool::totused

Number of elements currently in use.

Definition at line 118 of file BLI_mempool.c.


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