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);
See the overload above for contract.
MultipriorityThreadPool(
int numThreads,
int numPriorities,
bslmt::ThreadAttributes const& threadAttributes,
bslma::Allocator* basicAllocator = 0);
Parameters
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 |
Created with MrDocs