14 #ifndef PRIMARYDRIVERWITHTHREAD_H_
15 #define PRIMARYDRIVERWITHTHREAD_H_
17 #include "primarydriver.h"
37 virtual void *execute(
const atomic<bool> &terminated) = 0;
39 shared_ptr<XThread<XPrimaryDriverWithThread> > m_thread;
43 ret = execute(terminated);
46 e.print(
getLabel() + i18n(
" Error: "));
55 auto th = std::make_shared<XThread<XPrimaryDriverWithThread> >(
57 &XPrimaryDriverWithThread::execute_internal);
64 if(
auto th = m_thread)