diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-25 20:16:38 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-25 20:16:38 +0400 |
commit | e2bd3a4644aa0317356e801df1a2fda1d998df43 (patch) | |
tree | 245ea3f28ce772f4821a23b595d61e54a1cd7617 /source/blender/blenlib/BLI_mempool.h | |
parent | 28243b2e5fd272d12c4349c7998b39893c20628c (diff) |
clearing the mempool can now keep more then a single element reserved.
Diffstat (limited to 'source/blender/blenlib/BLI_mempool.h')
-rw-r--r-- | source/blender/blenlib/BLI_mempool.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_mempool.h b/source/blender/blenlib/BLI_mempool.h index 0e6fb169a90..147acdc6d97 100644 --- a/source/blender/blenlib/BLI_mempool.h +++ b/source/blender/blenlib/BLI_mempool.h @@ -73,6 +73,12 @@ void BLI_mempool_free(BLI_mempool *pool, void *addr) __attribute__((nonnull(1, 2))) #endif ; +void BLI_mempool_clear_ex(BLI_mempool *pool, + const int totelem_reserve) +#ifdef __GNUC__ +__attribute__((nonnull(1))) +#endif +; void BLI_mempool_clear(BLI_mempool *pool) #ifdef __GNUC__ __attribute__((nonnull(1))) |