Constructors
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...
| 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 |