This class provides a mechanism for facilitating the use of multiple threads to perform various user‐defined functions ("jobs") when some degree of collaboration between threads is required. The thread multiplexor is configured with a total number of "processors", representing the number of threads that may process jobs at any particular time. Additional threads enqueue jobs to a pending job queue, which is processed by the next available processing thread.
Synopsis
Declared in <bdlmt_threadmultiplexor.h>
class ThreadMultiplexor;
Type Aliases
Name |
Description |
A callback of this type may be passed to the |
Member Functions
Name |
Description |
|
Create a thread multiplexor which uses, at most, the specified |
|
Destroy this thread multiplexor object. |
Return the maximum number of active processors. |
|
Return the current number of active processors. |
|
Process the specified |
|
|
Declare that this type uses a |
Created with MrDocs