Diana Software
QBaseThreadHandler.hh
Go to the documentation of this file.
1 
2 #ifndef _Q_BASE_THREAD_HANDLER_HH_
3 #define _Q_BASE_THREAD_HANDLER_HH_
4 
5 class QError;
6 class QBaseThread;
7 namespace boost { class thread; }
8 
15 {
16 public:
18  virtual ~QBaseThreadHandler();
19  virtual QError Start() = 0;
21  QError Check(bool& isRunning);
22  QError Check(bool& isRunning, int timeoutMillisec);
23  QError Stop();
24 
25 protected:
28  boost::thread* fThread;
29 };
30 #endif
general purpose thread handler class
boost::thread * fThread
virtual QError Start()=0
QError Check(bool &isRunning)
base abstract class for running a separate thread
Definition: QBaseThread.hh:21
error class with error type and description
Definition: QError.hh:115
Definition: QDb.hh:18