[#BloombergLP-bdlmt-MultiQueueThreadPool-2constructor-0d] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/MultiQueueThreadPool.adoc[MultiQueueThreadPool]::MultiQueueThreadPool :relfileprefix: ../../../ :mrdocs: 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. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. The behavior is undefined unless `0 <= minThreads`, `minThreads <= maxThreads`, and `0 <= maxIdleTime`. Note that the `MultiQueueThreadPool` is created without any queues. Although queues may be created, `start` must be called before enqueuing jobs. == Synopsis Declared in `<bdlmt_multiqueuethreadpool.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- 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]#Created with https://www.mrdocs.com[MrDocs]#