[#BloombergLP-bdlma-ConcurrentPool-2constructor-00]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlma.adoc[bdlma]::xref:BloombergLP/bdlma/ConcurrentPool.adoc[ConcurrentPool]::ConcurrentPool
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

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

Create a memory pool that returns blocks of the specified size&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bdlma/ConcurrentPool/2constructor-03.adoc[ConcurrentPool](
    xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size&lowbar;type] blockSize,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bdlma/ConcurrentPool/2constructor-03.adoc[_» more&period;&period;&period;_]#

Create a memory pool with the specified growth strategy&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlma/ConcurrentPool/2constructor-09.adoc[ConcurrentPool](
    xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size&lowbar;type] blockSize,
    xref:BloombergLP/bsls/BlockGrowth/Strategy.adoc[bsls::BlockGrowth::Strategy] growthStrategy,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bdlma/ConcurrentPool/2constructor-09.adoc[_» more&period;&period;&period;_]#

Create a memory pool with the specified growth strategy and maximum chunk size&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlma/ConcurrentPool/2constructor-08.adoc[ConcurrentPool](
    xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size&lowbar;type] blockSize,
    xref:BloombergLP/bsls/BlockGrowth/Strategy.adoc[bsls::BlockGrowth::Strategy] growthStrategy,
    int maxBlocksPerChunk,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bdlma/ConcurrentPool/2constructor-08.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *blockSize*
| size in bytes of each allocated memory block
| *basicAllocator*
| memory allocator&semi; null uses the default
| *growthStrategy*
| strategy controlling growth of internal chunks
| *maxBlocksPerChunk*
| maximum number of blocks per allocated chunk
|===


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