[#BloombergLP-bdlmt-MultipriorityThreadPool-2constructor-0a] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/MultipriorityThreadPool.adoc[MultipriorityThreadPool]::MultipriorityThreadPool :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<bdlmt_multiprioritythreadpool.h>` Create a multi‐priority thread pool with the given size and priorities. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlmt/MultipriorityThreadPool/2constructor-0b.adoc[MultipriorityThreadPool]( int numThreads, int numPriorities, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlmt/MultipriorityThreadPool/2constructor-0b.adoc[_» more..._]# See the overload above for contract. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlmt/MultipriorityThreadPool/2constructor-00.adoc[MultipriorityThreadPool]( int numThreads, int numPriorities, xref:BloombergLP/bslmt/ThreadAttributes.adoc[bslmt::ThreadAttributes] const& threadAttributes, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlmt/MultipriorityThreadPool/2constructor-00.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *numThreads* | number of worker threads to create when started | *numPriorities* | number of distinct job priority levels | *basicAllocator* | memory allocator; null uses the default | *threadAttributes* | attributes used when creating worker threads |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#