libosmscout
0.1
|
A specialisation of worker that consumes events from a queue. More...
#include <Worker.h>
Public Member Functions | |
Consumer (ProcessingQueue< E > &inQueue) | |
![]() | |
ThreadedWorker ()=default | |
ThreadedWorker (const ThreadedWorker &other)=delete | |
ThreadedWorker (ThreadedWorker &&other)=delete | |
void | Wait () |
bool | WasSuccessful () const |
Returns true if the worker processed successfully, else false. More... | |
virtual | ~ThreadedWorker ()=default |
Protected Attributes | |
ProcessingQueue< E > & | inQueue |
Additional Inherited Members | |
![]() | |
void | MarkWorkerAsFailed () |
Worker can set itself to the failure status. More... | |
virtual void | ProcessingLoop ()=0 |
void | Start () |
A specialisation of worker that consumes events from a queue.
The consumer polls the queue and processes the events until the queue is stopped and the remaining events completely consumed.
E | the event type of the incoming queue |
|
inlineexplicit |
|
protected |