| 
    Intel(R) Threading Building Blocks Doxygen Documentation
    version 4.2.3
    
   | 
 
Base of thread-safe pool allocator for variable-size requests. More...
#include <memory_pool.h>
Public Member Functions | |
| void | recycle () | 
| Reset pool to reuse its memory (free all objects at once)  More... | |
| void * | malloc (size_t size) | 
| The "malloc" analogue to allocate block of memory of size bytes.  More... | |
| void | free (void *ptr) | 
| The "free" analogue to discard a previously allocated piece of memory.  More... | |
| void * | realloc (void *ptr, size_t size) | 
| The "realloc" analogue complementing pool_malloc.  More... | |
Protected Member Functions | |
| void | destroy () | 
| destroy pool - must be called in a child class  More... | |
Protected Attributes | |
| rml::MemoryPool * | my_pool | 
Additional Inherited Members | |
  Private Member Functions inherited from tbb::internal::no_copy | |
| no_copy (const no_copy &)=delete | |
| no_copy ()=default | |
Base of thread-safe pool allocator for variable-size requests.
Definition at line 46 of file memory_pool.h.
      
  | 
  inlineprotected | 
destroy pool - must be called in a child class
Definition at line 67 of file memory_pool.h.
References my_pool.
Referenced by tbb::interface6::fixed_pool::~fixed_pool(), and tbb::interface6::memory_pool< Alloc >::~memory_pool().
The "free" analogue to discard a previously allocated piece of memory.
Definition at line 57 of file memory_pool.h.
References my_pool.
      
  | 
  inline | 
The "malloc" analogue to allocate block of memory of size bytes.
Definition at line 54 of file memory_pool.h.
The "realloc" analogue complementing pool_malloc.
Definition at line 61 of file memory_pool.h.
      
  | 
  inline | 
Reset pool to reuse its memory (free all objects at once)
Definition at line 51 of file memory_pool.h.
References my_pool.
      
  | 
  protected | 
Definition at line 69 of file memory_pool.h.
Referenced by destroy(), tbb::interface6::fixed_pool::fixed_pool(), free(), malloc(), tbb::interface6::memory_pool< Alloc >::memory_pool(), realloc(), and recycle().