[#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;`

Create a multi&hyphen;queue thread pool that uses the specified `threadPool`&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;_]#

Create a multi&hyphen;queue thread pool with the given limits&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;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *threadPool*
| thread pool used to process queue jobs
| *basicAllocator*
| memory allocator&semi; null uses the default
| *threadAttributes*
| attributes used when creating worker threads
| *minThreads*
| minimum number of worker threads
| *maxThreads*
| maximum number of worker threads
| *maxIdleTime*
| idle time in milliseconds before a thread may exit
|===


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