Blender
V3.3
|
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 |
The mempool, stores and tracks memory chunks and elements within those chunks free.
Definition at line 97 of file BLI_mempool.c.
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.
BLI_mempool_chunk* BLI_mempool::chunks |
Single linked list of allocated chunks.
Definition at line 99 of file BLI_mempool.c.
uint BLI_mempool::csize |
Chunk size in bytes.
Definition at line 107 of file BLI_mempool.c.
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().
uint BLI_mempool::flag |
Definition at line 110 of file BLI_mempool.c.
Referenced by BLI_ghash_flag_clear(), BLI_ghash_flag_set(), BLI_gset_flag_clear(), BLI_gset_flag_set(), and ghash_new().
BLI_freenode* BLI_mempool::free |
Free element list. Interleaved into chunk data.
Definition at line 114 of file BLI_mempool.c.
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.
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().
uint BLI_mempool::totused |
Number of elements currently in use.
Definition at line 118 of file BLI_mempool.c.