BloombergLP::bdlmt::MultipriorityThreadPool::MultipriorityThreadPool

See the overload above for contract.

Synopsis

Declared in <bdlmt_multiprioritythreadpool.h>

MultipriorityThreadPool(
    int numThreads,
    int numPriorities,
    bslmt::ThreadAttributes const& threadAttributes,
    bslma::Allocator* basicAllocator = 0);

Parameters

NameDescription
numThreadsnumber of worker threads to create when started
numPrioritiesnumber of distinct job priority levels
threadAttributesattributes used when creating worker threads
basicAllocatormemory allocator; null uses the default