74 GUM_ASSERT(objectSize > 0);
76 std::lock_guard< std::mutex > lock(
_mutex_);
85 if (nb > UCHAR_MAX) nb = UCHAR_MAX;
86 auto numBlocks =
static_cast< unsigned char >(nb);
Allocates objects of one given size.
void * allocate(const size_t &objectSize)
Allocates a block.
static const size_t GUM_DEFAULT_CHUNK_SIZE
static const size_t GUM_DEFAULT_MAX_OBJECT_SIZE
std::size_t _maxObjectSize_
The maximal size of an object befor new is called.
std::size_t _chunkSize_
The memory that a chunk allocates.
Headers of gum::FixedAllocator.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
gum is the global namespace for all aGrUM entities
Headers of gum::SmallObjectAllocator.
Inlines of gum::SmallObjectAllocator.