|
Blender
V2.59
|
Go to the source code of this file.
Functions | |
| struct BLI_mempool * | BLI_mempool_create (int esize, int tote, int pchunk, int use_sysmalloc) |
| void * | BLI_mempool_alloc (struct BLI_mempool *pool) |
| void * | BLI_mempool_calloc (struct BLI_mempool *pool) |
| void | BLI_mempool_free (struct BLI_mempool *pool, void *addr) |
| void | BLI_mempool_destroy (struct BLI_mempool *pool) |
| void* BLI_mempool_alloc | ( | struct BLI_mempool * | pool | ) |
Definition at line 105 of file BLI_mempool.c.
References BLI_addtail(), BLI_mempool::chunks, BLI_mempool::csize, BLI_mempool_chunk::data, BLI_mempool::esize, BLI_mempool::free, MEM_mallocN(), BLI_freenode::next, BLI_mempool_chunk::next, NULL, BLI_mempool::pchunk, BLI_mempool_chunk::prev, BLI_mempool::totalloc, BLI_mempool::totused, and BLI_mempool::use_sysmalloc.
Referenced by BLI_ghash_insert(), BLI_mempool_calloc(), BME_addedgelist(), BME_addpolylist(), BME_addvertlist(), BME_CD_alloc_block(), BME_create_loop(), and seq_stripelem_cache_put().
| void* BLI_mempool_calloc | ( | struct BLI_mempool * | pool | ) |
Definition at line 137 of file BLI_mempool.c.
References BLI_mempool_alloc(), BLI_mempool::esize, and NULL.
Referenced by CustomData_bmesh_alloc_block().
| struct BLI_mempool* BLI_mempool_create | ( | int | esize, |
| int | tote, | ||
| int | pchunk, | ||
| int | use_sysmalloc | ||
| ) | [read] |
Definition at line 60 of file BLI_mempool.c.
References BLI_addtail(), BLI_mempool::chunks, BLI_mempool::csize, BLI_mempool_chunk::data, BLI_mempool::esize, ListBase::first, BLI_mempool::free, i, ListBase::last, MEM_mallocN(), BLI_freenode::next, BLI_mempool_chunk::next, NULL, BLI_mempool::pchunk, BLI_mempool_chunk::prev, BLI_mempool::totalloc, BLI_mempool::totused, and BLI_mempool::use_sysmalloc.
Referenced by BLI_ghash_new(), BME_CD_Create(), BME_make_mesh(), CustomData_bmesh_init_pool(), and seq_stripelem_cache_init().
| void BLI_mempool_destroy | ( | struct BLI_mempool * | pool | ) |
Definition at line 183 of file BLI_mempool.c.
References BLI_freelist(), BLI_freelistN(), BLI_mempool::chunks, BLI_mempool_chunk::data, ListBase::first, MEM_freeN(), BLI_mempool_chunk::next, NULL, and BLI_mempool::use_sysmalloc.
Referenced by BLI_ghash_free(), BME_CD_Free(), BME_free_mesh(), and seq_stripelem_cache_destruct().
| void BLI_mempool_free | ( | struct BLI_mempool * | pool, |
| void * | addr | ||
| ) |
Definition at line 145 of file BLI_mempool.c.
References BLI_addtail(), BLI_freelist(), BLI_freelistN(), BLI_remlink(), BLI_mempool::chunks, BLI_mempool_chunk::data, BLI_mempool::esize, ListBase::first, BLI_mempool::free, i, MEM_freeN(), BLI_freenode::next, BLI_mempool_chunk::next, NULL, BLI_mempool::pchunk, BLI_mempool::totalloc, BLI_mempool::totused, and BLI_mempool::use_sysmalloc.
Referenced by BLI_ghash_remove(), BME_CD_free_block(), BME_free_edge(), BME_free_loop(), BME_free_poly(), BME_free_vert(), CustomData_bmesh_free_block(), HashKeyFree(), and HashValFree().