Create a queue bound to the specified multi‐queue thread pool.

Synopsis

Declared in <bdlmt_multiqueuethreadpool.h>

explicit
MultiQueueThreadPool_Queue(
    MultiQueueThreadPool* multiQueueThreadPool,
    bslma::Allocator* basicAllocator = 0);

Description

Create a MultiQueueThreadPool_Queue with an initial capacity of 0 and initialized to use the specified multiQueueThreadPool to track aggregate values (e.g., the number of active queues) and to obtain the thread pool used to execute jobs that are appended to this queue. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the default memory allocator is used.

Parameters

Name

Description

multiQueueThreadPool

pool that owns and tracks this queue

basicAllocator

memory allocator; null uses the default

Created with MrDocs