Constructors

Synopses

Declared in <bdlma_concurrentpoolallocator.h>

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

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

Same as the preceding overload, with the specified growthStrategy.

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

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

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

Same as the preceding overload, with the specified maxBlocksPerChunk.

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

Same as the preceding overload, with the specified growthStrategy.

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

Same as the preceding overload, with the specified maxBlocksPerChunk.

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

Parameters

Name

Description

basicAllocator

memory allocator; null uses the default

growthStrategy

strategy controlling growth of internal chunks

blockSize

size in bytes of each pooled memory block

maxBlocksPerChunk

maximum blocks allocated when replenishing

Created with MrDocs