[#BloombergLP-bdlmt-MultiQueueThreadPool_Queue-2constructor-0508] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/MultiQueueThreadPool_Queue.adoc[MultiQueueThreadPool_Queue]::MultiQueueThreadPool_Queue :relfileprefix: ../../../ :mrdocs: Create a queue bound to the specified multi‐queue thread pool. == Synopsis Declared in `<bdlmt_multiqueuethreadpool.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit MultiQueueThreadPool_Queue( xref:BloombergLP/bdlmt/MultiQueueThreadPool.adoc[MultiQueueThreadPool]* multiQueueThreadPool, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- == Description Create a `MultiQueueThreadPool_Queue` with an initial capacity of 0 and initialized to use the specified `multiQueueThreadPool` to track aggregate values (e.g., the number of active queues) and to obtain the thread pool used to execute jobs that are appended to this queue. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the default memory allocator is used. == Parameters [cols="1,4"] |=== | Name| Description | *multiQueueThreadPool* | pool that owns and tracks this queue | *basicAllocator* | memory allocator; null uses the default |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#