Blender V5.3
blender::BLI_mempool Struct Reference

Public Attributes

BLI_mempool_chunk * chunks
BLI_mempool_chunk * chunk_tail
uint esize
uint csize
uint pchunk
uint flag
BLI_freenode * free
uint maxchunks
uint totused

Detailed Description

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

Definition at line 102 of file BLI_mempool.cc.

Member Data Documentation

◆ chunk_tail

BLI_mempool_chunk* blender::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 113 of file BLI_mempool.cc.

Referenced by blender::BLI_mempool_alloc(), blender::BLI_mempool_clear_ex(), blender::BLI_mempool_create(), blender::BLI_mempool_free(), and blender::mempool_chunk_add().

◆ chunks

◆ csize

uint blender::BLI_mempool::csize

◆ esize

◆ flag

◆ free

BLI_freenode* blender::BLI_mempool::free

Free element list. Interleaved into chunk data.

Definition at line 124 of file BLI_mempool.cc.

Referenced by blender::BLI_mempool_alloc(), blender::BLI_mempool_clear_ex(), blender::BLI_mempool_create(), blender::BLI_mempool_free(), and blender::mempool_chunk_add().

◆ maxchunks

uint blender::BLI_mempool::maxchunks

Use to know how many chunks to keep for BLI_mempool_clear.

Definition at line 126 of file BLI_mempool.cc.

Referenced by blender::BLI_mempool_clear_ex(), and blender::BLI_mempool_create().

◆ pchunk

◆ totused


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