This private class provides a thread‐safe, lightweight job queue.
Synopsis
Declared in <bdlmt_multiqueuethreadpool.h>
class MultiQueueThreadPool_Queue;
Type Aliases
Name |
Description |
Defines a type alias for the job functor type. |
Member Functions
Name |
Description |
|
Create a queue bound to the specified multi‐queue thread pool. |
|
Destroy this queue. |
Return this queue's execution batch size. |
|
Disable enqueuing to this queue. |
|
Block until all threads waiting for this queue to pause are released. |
|
Enable enqueuing to this queue. |
|
Disable this queue and schedule its deletion. |
|
Execute and dequeue the job at the front of this queue. |
|
Begin pausing this queue without waiting for the current job. |
|
Report whether all jobs in this queue are finished. |
|
Report whether enqueuing to this object is enabled. This object is constructed with enqueuing enabled. |
|
Report whether this object is paused. |
|
Return an instantaneous snapshot of the length of this queue. |
|
Enqueue |
|
Add |
|
Reset this queue to its initial state. |
|
Allow jobs on this queue to begin executing. |
|
Set this queue's job execution batch size. |
|
Wait until the current job finishes and this queue is paused. |
|
Declare that this type uses a |
Created with MrDocs