[#BloombergLP-bdlmt-MultiQueueThreadPool-2constructor-01]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/MultiQueueThreadPool.adoc[MultiQueueThreadPool]::MultiQueueThreadPool
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;bdlmt&lowbar;multiqueuethreadpool&period;h&gt;`

Construct a `MultiQueueThreadPool` with the specified `threadPool`&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the default memory allocator is used&period; The behavior is undefined if `threadPool` is 0&period; Note that the `MultiQueueThreadPool` is created without any queues&period; Although queues may be created, `start` must be called before enqueuing jobs&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bdlmt/MultiQueueThreadPool/2constructor-0a.adoc[MultiQueueThreadPool](
    xref:BloombergLP/bdlmt/ThreadPool.adoc[ThreadPool]* threadPool,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bdlmt/MultiQueueThreadPool/2constructor-0a.adoc[_» more&period;&period;&period;_]#

Construct a `MultiQueueThreadPool` with the specified `threadAttributes`, the specified `minThreads` minimum number of threads, the specified `maxThreads` maximum number of threads, and the specified `maxIdleTime` idle time (in milliseconds) after which a thread may be considered for destruction&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;&equals; minThreads`, `minThreads &lt;&equals; maxThreads`, and `0 &lt;&equals; maxIdleTime`&period; Note that the `MultiQueueThreadPool` is created without any queues&period; Although queues may be created, `start` must be called before enqueuing jobs&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlmt/MultiQueueThreadPool/2constructor-0d.adoc[MultiQueueThreadPool](
    xref:BloombergLP/bslmt/ThreadAttributes.adoc[bslmt::ThreadAttributes] const& threadAttributes,
    int minThreads,
    int maxThreads,
    int maxIdleTime,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bdlmt/MultiQueueThreadPool/2constructor-0d.adoc[_» more&period;&period;&period;_]#


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