Class FixedMallocPool

Nested Relationships

Class Documentation

class umpire::util::FixedMallocPool

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.

Public Functions

FixedMallocPool(const std::size_t object_bytes, const std::size_t objects_per_pool = 1024 * 1024)
void *allocate(std::size_t bytes = 0)
void deallocate(void *ptr)
std::size_t numPools() const noexcept