Create a memory pool with the specified growth strategy and maximum chunk size.

Synopsis

Declared in <bdlma_concurrentpool.h>

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

Parameters

Name

Description

blockSize

size in bytes of each allocated memory block

growthStrategy

strategy controlling growth of internal chunks

maxBlocksPerChunk

maximum number of blocks per allocated chunk

basicAllocator

memory allocator; null uses the default

Created with MrDocs