|
libosmscout 1.1.1
|
#include <libosmscout/include/osmscout/async/Worker.h>


Public Member Functions | |
| Producer (ProcessingQueue< E > &outQueue) | |
| Public Member Functions inherited from osmscout::ThreadedWorker | |
| ThreadedWorker ()=default | |
| ThreadedWorker (const ThreadedWorker &other)=delete | |
| ThreadedWorker (ThreadedWorker &&other)=delete | |
| virtual | ~ThreadedWorker ()=default |
| bool | WasSuccessful () const |
| void | Wait () |
Protected Attributes | |
| ProcessingQueue< E > & | outQueue |
Additional Inherited Members | |
| Protected Member Functions inherited from osmscout::ThreadedWorker | |
| void | MarkWorkerAsFailed () |
| void | Start () |
| virtual void | ProcessingLoop ()=0 |
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 |