BloombergLP::bdlmt::MultipriorityThreadPool::MultipriorityThreadPool

Constructors

Synopses

Declared in <bdlmt_multiprioritythreadpool.h>

Create a multi-priority thread pool with the given size and priorities.

MultipriorityThreadPool(
    int numThreads,
    int numPriorities,
    bslma::Allocator* basicAllocator = 0);
» more...

See the overload above for contract.

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

Parameters

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