|
Blender
V2.93
|
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 112 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 117 of file BLI_mempool.c.
| BLI_mempool_chunk* BLI_mempool::chunks |
Single linked list of allocated chunks.
Definition at line 114 of file BLI_mempool.c.
| uint BLI_mempool::csize |
Chunk size in bytes.
Definition at line 122 of file BLI_mempool.c.
| uint BLI_mempool::esize |
Element size in bytes.
Definition at line 120 of file BLI_mempool.c.
Referenced by BLI_mempool_iterstep().
| uint BLI_mempool::flag |
Definition at line 125 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 datas.
Definition at line 129 of file BLI_mempool.c.
| 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.
| uint BLI_mempool::pchunk |
Number of elements per chunk.
Definition at line 124 of file BLI_mempool.c.
Referenced by BLI_mempool_iterstep().
| uint BLI_mempool::totused |
Number of elements currently in use.
Definition at line 133 of file BLI_mempool.c.