|
Signbit MPSCQ
0.5.0
|
#include <mpscq.h>

Public Member Functions | |
| ProcessorBase (Queue &queue) | |
| virtual void | processElement (Queue::Envelope *envelope)=0 |
| virtual void | afterBatch () |
| virtual void | onIdle () |
| void | startProcessing () |
| void | interrupt () |
| ProcessorBase (const ProcessorBase &other)=delete | |
| ProcessorBase & | operator= (const ProcessorBase &other)=delete |
| ProcessorBase (ProcessorBase &&other)=delete | |
| ProcessorBase & | operator= (ProcessorBase &&other)=delete |
Base class encapsulating the event loop of a consumer or processor
|
inlineexplicit |
Constructs a processor that consumes elements from a queue
| queue | Is the queue from which elements are consumed |
|
inlinevirtual |
Called after each batch of elements is processed
|
inline |
Interrupts the "infinite" event loop
|
inlinevirtual |
Called when a new batch was requested, but no new elements were available
|
pure virtual |
Called for each element popped from the queue
| envelope | Points to the element to be processed |
|
inline |
Begin the "infinite" event loop
1.8.17