|
Blender V5.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 102 of file BLI_mempool.cc.
| 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().
| BLI_mempool_chunk* blender::BLI_mempool::chunks |
Single linked list of allocated chunks.
Definition at line 108 of file BLI_mempool.cc.
Referenced by blender::BLI_mempool_clear_ex(), blender::BLI_mempool_create(), blender::BLI_mempool_destroy(), blender::BLI_mempool_free(), blender::BLI_mempool_iternew(), and blender::mempool_chunk_add().
| uint blender::BLI_mempool::csize |
Chunk size in bytes.
Definition at line 118 of file BLI_mempool.cc.
Referenced by blender::BLI_mempool_create(), blender::BLI_mempool_free(), blender::mempool_chunk_alloc(), and blender::mempool_chunk_free().
| uint blender::BLI_mempool::esize |
Element size in bytes.
Definition at line 116 of file BLI_mempool.cc.
Referenced by blender::BLI_mempool_alloc(), blender::BLI_mempool_as_array(), blender::BLI_mempool_as_arrayN(), blender::BLI_mempool_calloc(), blender::BLI_mempool_create(), blender::BLI_mempool_free(), blender::BLI_mempool_iterstep(), blender::mempool_chunk_add(), blender::mempool_chunk_free(), and blender::mempool_iter_threadsafe_step().
| uint blender::BLI_mempool::flag |
Definition at line 121 of file BLI_mempool.cc.
Referenced by blender::BLI_mempool_alloc(), blender::BLI_mempool_as_array(), blender::BLI_mempool_create(), blender::BLI_mempool_findelem(), blender::BLI_mempool_free(), blender::BLI_mempool_iternew(), blender::mempool_chunk_add(), and blender::mempool_iter_threadsafe_create().
| 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().
| 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().
| uint blender::BLI_mempool::pchunk |
Number of elements per chunk.
Definition at line 120 of file BLI_mempool.cc.
Referenced by blender::BLI_mempool_clear_ex(), blender::BLI_mempool_create(), blender::BLI_mempool_free(), blender::BLI_mempool_iterstep(), blender::mempool_chunk_add(), and blender::mempool_iter_threadsafe_step().
| uint blender::BLI_mempool::totused |
Number of elements currently in use.
Definition at line 128 of file BLI_mempool.cc.
Referenced by blender::BLI_mempool_alloc(), blender::BLI_mempool_as_arrayN(), blender::BLI_mempool_clear_ex(), blender::BLI_mempool_create(), blender::BLI_mempool_free(), and blender::BLI_mempool_len().