[#BloombergLP-bdlmt-MultiQueueThreadPool-2constructor-0a] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/MultiQueueThreadPool.adoc[MultiQueueThreadPool]::MultiQueueThreadPool :relfileprefix: ../../../ :mrdocs: Create a multi‐queue thread pool that uses the specified `threadPool`. == Synopsis Declared in `<bdlmt_multiqueuethreadpool.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit MultiQueueThreadPool( xref:BloombergLP/bdlmt/ThreadPool.adoc[ThreadPool]* threadPool, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- == Description Construct a `MultiQueueThreadPool` with the specified `threadPool`. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the default memory allocator is used. The behavior is undefined if `threadPool` is 0. Note that the `MultiQueueThreadPool` is created without any queues. Although queues may be created, `start` must be called before enqueuing jobs. == Parameters [cols="1,4"] |=== | Name| Description | *threadPool* | thread pool used to process queue jobs | *basicAllocator* | memory allocator; null uses the default |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#