[#BloombergLP-bdlmt-FixedThreadPool-2constructor-03] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/FixedThreadPool.adoc[FixedThreadPool]::FixedThreadPool :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<bdlmt_fixedthreadpool.h>` Construct a fixed‐size thread pool. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlmt/FixedThreadPool/2constructor-00.adoc[FixedThreadPool]( int numThreads, int maxNumPendingJobs, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlmt/FixedThreadPool/2constructor-00.adoc[_» more..._]# Construct a thread pool with the specified `threadAttributes`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlmt/FixedThreadPool/2constructor-0d.adoc[FixedThreadPool]( xref:BloombergLP/bslmt/ThreadAttributes.adoc[bslmt::ThreadAttributes] const& threadAttributes, int numThreads, int maxNumPendingJobs, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlmt/FixedThreadPool/2constructor-0d.adoc[_» more..._]# Construct a thread pool with the specified `threadPoolName`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlmt/FixedThreadPool/2constructor-06.adoc[FixedThreadPool]( int numThreads, int maxNumPendingJobs, std::string_view const& threadPoolName, xref:BloombergLP/bdlm/MetricsRegistry.adoc[bdlm::MetricsRegistry]* metricsRegistry, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlmt/FixedThreadPool/2constructor-06.adoc[_» more..._]# Construct a thread pool with `threadAttributes` and `threadPoolName`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlmt/FixedThreadPool/2constructor-07.adoc[FixedThreadPool]( xref:BloombergLP/bslmt/ThreadAttributes.adoc[bslmt::ThreadAttributes] const& threadAttributes, int numThreads, int maxNumPendingJobs, std::string_view const& threadPoolName, xref:BloombergLP/bdlm/MetricsRegistry.adoc[bdlm::MetricsRegistry]* metricsRegistry, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlmt/FixedThreadPool/2constructor-07.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *numThreads* | number of processing threads | *maxNumPendingJobs* | capacity of the pending‐job queue | *basicAllocator* | memory allocator; null uses the default | *threadAttributes* | attributes used when creating worker threads | *threadPoolName* | name identifying this thread pool | *metricsRegistry* | metrics registry, or singleton if 0 |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#