[#BloombergLP-bdlma-ConcurrentFixedPool-2constructor] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlma.adoc[bdlma]::xref:BloombergLP/bdlma/ConcurrentFixedPool.adoc[ConcurrentFixedPool]::ConcurrentFixedPool :relfileprefix: ../../../ :mrdocs: Create a fixed‐size pool of uniformly sized memory blocks. == Synopsis Declared in `<bdlma_concurrentfixedpool.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- ConcurrentFixedPool( int objectSize, int poolSize, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- == Description Create a memory pool that returns memory of the specified `objectSize` for each invocation of the `allocate` method. Configure this pool to support allocation of up to the specified `poolSize` number of memory blocks. The largest supported `poolSize` is 33554431. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. The behavior is undefined unless `0 < objectSize`, `0 < poolSize`, and `0x1FFFFFF >= poolSize`. == Parameters [cols="1,4"] |=== | Name| Description | *objectSize* | size in bytes of each pooled memory block | *poolSize* | maximum number of blocks that may be allocated | *basicAllocator* | memory allocator; null uses the default |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#