Same as the preceding overload, with the specified maxBlocksPerChunk.

Synopsis

Declared in <bdlma_concurrentpoolallocator.h>

ConcurrentPoolAllocator(
    size_type blockSize,
    bsls::BlockGrowth::Strategy growthStrategy,
    int maxBlocksPerChunk,
    bslma::Allocator* basicAllocator = 0);

Parameters

Name

Description

blockSize

size in bytes of each pooled memory block

growthStrategy

strategy controlling growth of internal chunks

maxBlocksPerChunk

maximum blocks allocated when replenishing

basicAllocator

memory allocator; null uses the default

Created with MrDocs