BloombergLP::bdlma::ConcurrentPool::reserveCapacity

Reserve capacity for at least numBlocks blocks from this pool.

Synopsis

Declared in <bdlma_concurrentpool.h>

void
reserveCapacity(int numBlocks);

Description

Reserve memory from this pool to satisfy memory requests for at least the specified numBlocks before the pool replenishes. The behavior is undefined unless 0 <= numBlocks.

Parameters

NameDescription
numBlocksminimum number of blocks to reserve