BloombergLP::bdlma::ConcurrentPool::ConcurrentPool

Constructors

Synopses

Declared in <bdlma_concurrentpool.h>

Create a memory pool that returns blocks of the specified size.

explicit
ConcurrentPool(
    bsls::Types::size_type blockSize,
    bslma::Allocator* basicAllocator = 0);
» more...

Create a memory pool with the specified growth strategy.

ConcurrentPool(
    bsls::Types::size_type blockSize,
    bsls::BlockGrowth::Strategy growthStrategy,
    bslma::Allocator* basicAllocator = 0);
» more...

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

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

Parameters

NameDescription
blockSizesize in bytes of each allocated memory block
basicAllocatormemory allocator; null uses the default
growthStrategystrategy controlling growth of internal chunks
maxBlocksPerChunkmaximum number of blocks per allocated chunk