Constructors
Declared in <bdlmt_multiqueuethreadpool.h>
Create a multi-queue thread pool that uses the specified threadPool.
explicit
MultiQueueThreadPool(
ThreadPool* threadPool,
bslma::Allocator* basicAllocator = 0);
» more...
Create a multi-queue thread pool with the given limits.
MultiQueueThreadPool(
bslmt::ThreadAttributes const& threadAttributes,
int minThreads,
int maxThreads,
int maxIdleTime,
bslma::Allocator* basicAllocator = 0);
» more...
| Name | Description |
|---|---|
| threadPool | thread pool used to process queue jobs |
| basicAllocator | memory allocator; null uses the default |
| threadAttributes | attributes used when creating worker threads |
| minThreads | minimum number of worker threads |
| maxThreads | maximum number of worker threads |
| maxIdleTime | idle time in milliseconds before a thread may exit |