libosmscout
0.1
|
A specialisation of Worker. More...
#include <Worker.h>
Public Member Functions | |
Producer (ProcessingQueue< E > &outQueue) | |
![]() | |
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 > & | outQueue |
Additional Inherited Members | |
![]() | |
void | MarkWorkerAsFailed () |
Worker can set itself to the failure status. More... | |
virtual void | ProcessingLoop ()=0 |
void | Start () |
A specialisation of Worker.
A Producer generates events of type E and places them into an out queue.
If the producer is finished it can be joined. The outQueue is stopped.
E | The event type of the outgoing queue |
|
inlineexplicit |
|
protected |