[#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 `&lt;bdlmt&lowbar;multiprioritythreadpool&period;h&gt;`

Create a multi&hyphen;priority thread pool with the given size and priorities&period;


[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&period;&period;&period;_]#

See the overload above for contract&period;


[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&period;&period;&period;_]#

== 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&semi; null uses the default
| *threadAttributes*
| attributes used when creating worker threads
|===


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