1#ifndef OSMSCOUT_UTIL_WORKER_H
2#define OSMSCOUT_UTIL_WORKER_H
89 if (thread.joinable()) {
112 template <
typename E>
134 template <
typename E1,
typename E2>
158 template <
typename E>
#define OSMSCOUT_API
Definition CoreImportExport.h:45
ProcessingQueue< E > & inQueue
Definition Worker.h:162
Consumer(ProcessingQueue< E > &inQueue)
Definition Worker.h:165
Pipe(ProcessingQueue< E1 > &inQueue, ProcessingQueue< E2 > &outQueue)
Definition Worker.h:142
ProcessingQueue< E1 > & inQueue
Definition Worker.h:138
ProcessingQueue< E2 > & outQueue
Definition Worker.h:139
Definition ProcessingQueue.h:56
Producer(ProcessingQueue< E > &outQueue)
Definition Worker.h:119
ProcessingQueue< E > & outQueue
Definition Worker.h:116
ThreadedWorker(const ThreadedWorker &other)=delete
void Wait()
Definition Worker.h:88
virtual void ProcessingLoop()=0
void Start()
Definition Worker.h:95
bool WasSuccessful() const
Definition Worker.h:83
void MarkWorkerAsFailed()
Definition Worker.h:62
ThreadedWorker(ThreadedWorker &&other)=delete
virtual ~ThreadedWorker()=default