Signbit MPSCQ
0.5.0
|
#include <mpscq.h>
Public Member Functions | |
Processor (Queue &queue) | |
![]() | |
ProcessorBase (Queue &queue) | |
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 |
Protected Member Functions | |
virtual void | process (const Payload &payload)=0 |
Strongly-typed consumer
Wraps the cast from the Queue::Envelope type to the Payload type
Payload | Is the type of the useful payload processed via the queue |
|
inlineexplicit |
Constructs a processor
queue | Is the queue from which elements are consumed |
|
protectedpure virtual |
Process a message
payload | Is the message contents to be processed |