BloombergLP::bdlma::ConcurrentPoolAllocator::ConcurrentPoolAllocator

Constructors

Synopses

Declared in <bdlma_concurrentpoolallocator.h>

Create a pool allocator that sizes blocks on the first allocation.

explicit
ConcurrentPoolAllocator(bslma::Allocator* basicAllocator = 0);
» more...

Same as the preceding overload, with the specified growthStrategy.

explicit
ConcurrentPoolAllocator(
    bsls::BlockGrowth::Strategy growthStrategy,
    bslma::Allocator* basicAllocator = 0);
» more...

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

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

Same as the preceding overload, with the specified maxBlocksPerChunk.

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

Same as the preceding overload, with the specified growthStrategy.

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

Same as the preceding overload, with the specified maxBlocksPerChunk.

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

Parameters

NameDescription
basicAllocatormemory allocator; null uses the default
growthStrategystrategy controlling growth of internal chunks
blockSizesize in bytes of each pooled memory block
maxBlocksPerChunkmaximum blocks allocated when replenishing