[#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&hyphen;size pool of uniformly sized memory blocks&period;

== Synopsis

Declared in `&lt;bdlma&lowbar;concurrentfixedpool&period;h&gt;`

[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&period; Configure this pool to support allocation of up to the specified `poolSize` number of memory blocks&period; The largest supported `poolSize` is 33554431&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period; The behavior is undefined unless `0 &lt; objectSize`, `0 &lt; poolSize`, and `0x1FFFFFF &gt;&equals; poolSize`&period;

== 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&semi; null uses the default
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
