This class implements a dynamic, configurable pool of queues, each of which is processed serially by a thread pool.
Synopsis
Declared in <bdlmt_multiqueuethreadpool.h>
class MultiQueueThreadPool;
Type Aliases
Name |
Description |
Defines a type alias for the queue cleanup functor type. |
|
Defines a type alias for the job functor type. |
|
Defines a type alias for the registry mapping queue IDs to queues. |
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this multi‐queue thread pool. |
|
|
Return the batch size of queue |
|
Create a new queue and return its non‐zero identifier. |
|
|
|
Disable enqueuing to the queue associated with the specified |
|
Wait until all non‐paused queues are empty. |
|
Wait until all jobs in the queue with the specified |
|
Enable enqueuing to the queue associated with the specified |
|
|
|
Return |
|
Return |
|
|
|
Load processed item counts into the output parameters. |
|
Reset and return processed/enqueued/deleted counts. |
|
Return an instantaneous snapshot of the number of queues managed by this object. |
|
Pause the queue with the specified |
|
Allow jobs on the queue with the specified |
|
Set the job execution batch size for the queue with the specified |
|
Disable queuing, delete all queues, and shut down the owned pool. |
|
Start queuing and the owned thread pool. |
|
Disable queuing and stop the owned thread pool once queues drain. |
|
Return a reference to the non‐modifiable thread pool owned by this object. |
|
|
Declare that this type uses a |
Friends
Name |
Description |
This private class provides a thread‐safe, lightweight job queue. |
Created with MrDocs