[#BloombergLP-bdlmt-MultiQueueThreadPool_Queue-2constructor-0508]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/MultiQueueThreadPool_Queue.adoc[MultiQueueThreadPool&lowbar;Queue]::MultiQueueThreadPool&lowbar;Queue
:relfileprefix: ../../../
:mrdocs:

Create a queue bound to the specified multi&hyphen;queue thread pool&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
MultiQueueThreadPool&lowbar;Queue(
    xref:BloombergLP/bdlmt/MultiQueueThreadPool.adoc[MultiQueueThreadPool]* multiQueueThreadPool,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

== Description

Create a `MultiQueueThreadPool&lowbar;Queue` with an initial capacity of 0 and initialized to use the specified `multiQueueThreadPool` to track aggregate values (e&period;g&period;, the number of active queues) and to obtain the thread pool used to execute jobs that are appended to this queue&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the default memory allocator is used&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *multiQueueThreadPool*
| pool that owns and tracks this queue
| *basicAllocator*
| memory allocator&semi; null uses the default
|===


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