libosmscout  1.1.1
Public Member Functions | Protected Attributes | List of all members
osmscout::Consumer< E > Class Template Reference

#include <libosmscout/include/osmscout/util/Worker.h>

Inheritance diagram for osmscout::Consumer< E >:
Inheritance graph
[legend]
Collaboration diagram for osmscout::Consumer< E >:
Collaboration graph
[legend]

Public Member Functions

 Consumer (ProcessingQueue< E > &inQueue)
 
- 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 > & inQueue
 

Additional Inherited Members

- Protected Member Functions inherited from osmscout::ThreadedWorker
void MarkWorkerAsFailed ()
 
void Start ()
 
virtual void ProcessingLoop ()=0
 

Detailed Description

template<typename E>
class osmscout::Consumer< E >

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.

Template Parameters
Ethe event type of the incoming queue

Constructor & Destructor Documentation

◆ Consumer()

template<typename E >
osmscout::Consumer< E >::Consumer ( ProcessingQueue< E > &  inQueue)
inlineexplicit

Member Data Documentation

◆ inQueue

template<typename E >
ProcessingQueue<E>& osmscout::Consumer< E >::inQueue
protected

The documentation for this class was generated from the following file: