|
UMPIRE
Umpire: resource management and provision
|
Pool for fixed size allocations using malloc() More...
#include </home/docs/checkouts/readthedocs.org/user_builds/umpire/checkouts/develop/src/umpire/util/FixedMallocPool.hpp>
Public Member Functions | |
| FixedMallocPool ()=delete | |
| FixedMallocPool (const std::size_t object_bytes, const std::size_t objects_per_pool=1024 *1024) | |
| FixedMallocPool (const FixedMallocPool &other)=delete | |
| FixedMallocPool & | operator= (const FixedMallocPool &other)=delete |
| ~FixedMallocPool () | |
| void * | allocate (std::size_t bytes=0) |
| void | deallocate (void *ptr) |
| std::size_t | numPools () const noexcept |
| std::size_t | totalBytes () const noexcept |
Pool for fixed size allocations using malloc()
Another version of this class exists in umpire::strategy, but this version does not rely on Allocator and all the memory tracking statistics, so it is useful for building objects in umpire::util.
|
delete |
| umpire::util::FixedMallocPool::FixedMallocPool | ( | const std::size_t | object_bytes, |
| const std::size_t | objects_per_pool = 1024 * 1024 |
||
| ) |
|
delete |
| umpire::util::FixedMallocPool::~FixedMallocPool | ( | ) |
References umpire::free().
|
delete |
| void * umpire::util::FixedMallocPool::allocate | ( | std::size_t | bytes = 0 | ) |
References UMPIRE_ASSERT.
Referenced by umpire::strategy::QuickPool::allocate(), and umpire::strategy::ResourceAwarePool::allocate_resource().
| void umpire::util::FixedMallocPool::deallocate | ( | void * | ptr | ) |
References UMPIRE_ERROR.
Referenced by umpire::strategy::QuickPool::deallocate(), umpire::strategy::QuickPool::release(), and umpire::strategy::ResourceAwarePool::release().
|
noexcept |
Referenced by totalBytes().
|
noexcept |
References numPools().
Referenced by umpire::util::AllocationMap::internalMemoryUsage().