Constructors
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...
| Name | Description |
|---|---|
| blockSize | size in bytes of each allocated memory block |
| basicAllocator | memory allocator; null uses the default |
| growthStrategy | strategy controlling growth of internal chunks |
| maxBlocksPerChunk | maximum number of blocks per allocated chunk |