Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/BLI_mempool.h
| Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | |||||
| void **BLI_mempool_as_tableN(BLI_mempool *pool, const char *allocstr) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1, 2); | void **BLI_mempool_as_tableN(BLI_mempool *pool, const char *allocstr) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1, 2); | ||||
| void BLI_mempool_as_array(BLI_mempool *pool, void *data) ATTR_NONNULL(1, 2); | void BLI_mempool_as_array(BLI_mempool *pool, void *data) ATTR_NONNULL(1, 2); | ||||
| void *BLI_mempool_as_arrayN(BLI_mempool *pool, const char *allocstr) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1, 2); | void *BLI_mempool_as_arrayN(BLI_mempool *pool, const char *allocstr) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1, 2); | ||||
| #ifndef NDEBUG | #ifndef NDEBUG | ||||
| void BLI_mempool_set_memory_debug(void); | void BLI_mempool_set_memory_debug(void); | ||||
| #endif | #endif | ||||
| /** iteration stuff. note: this may easy to produce bugs with **/ | /** iteration stuff. note: this may easy to produce bugs with */ | ||||
| /* private structure */ | /* private structure */ | ||||
| typedef struct BLI_mempool_iter { | typedef struct BLI_mempool_iter { | ||||
| BLI_mempool *pool; | BLI_mempool *pool; | ||||
| struct BLI_mempool_chunk *curchunk; | struct BLI_mempool_chunk *curchunk; | ||||
| unsigned int curindex; | unsigned int curindex; | ||||
| struct BLI_mempool_chunk **curchunk_threaded_shared; | struct BLI_mempool_chunk **curchunk_threaded_shared; | ||||
| } BLI_mempool_iter; | } BLI_mempool_iter; | ||||
| Show All 23 Lines | |||||