![]() |
Diana Software
|
general purpose thread handler class More...
Public Member Functions | |
| QBaseThreadHandler () | |
| virtual | ~QBaseThreadHandler () |
| virtual QError | Start ()=0 |
| QError | Check (bool &isRunning) |
| QError | Check (bool &isRunning, int timeoutMillisec) |
| QError | Stop () |
Protected Attributes | |
| int | fControlFlag |
| QError * | fErr |
| boost::thread * | fThread |
general purpose thread handler class
Definition at line 14 of file QBaseThreadHandler.hh.
| QBaseThreadHandler::QBaseThreadHandler | ( | ) |
Definition at line 9 of file QBaseThreadHandler.cc.
References fErr, and QERR_SUCCESS.
|
virtual |
Definition at line 18 of file QBaseThreadHandler.cc.
| QError QBaseThreadHandler::Check | ( | bool & | isRunning | ) |
value of isRunning is set according to the status of the thread
Definition at line 26 of file QBaseThreadHandler.cc.
Referenced by QDbWatchdogThreadHandler::Start(), Stop(), and QDb::UpdateWatchdogTimer().
| QError QBaseThreadHandler::Check | ( | bool & | isRunning, |
| int | timeoutMillisec | ||
| ) |
Definition at line 32 of file QBaseThreadHandler.cc.
References fErr, fThread, and QERR_SUCCESS.
|
pure virtual |
Implemented in QDbWatchdogThreadHandler.
| QError QBaseThreadHandler::Stop | ( | ) |
Definition at line 51 of file QBaseThreadHandler.cc.
References Check(), err, fControlFlag, fThread, QERR_SUCCESS, and QERR_UNDEFINED_STATUS.
Referenced by ~QBaseThreadHandler().
|
protected |
Definition at line 26 of file QBaseThreadHandler.hh.
Referenced by QDbWatchdogThreadHandler::Start(), and Stop().
|
protected |
Definition at line 27 of file QBaseThreadHandler.hh.
Referenced by Check(), QBaseThreadHandler(), QDbWatchdogThreadHandler::Start(), and ~QBaseThreadHandler().
|
protected |
Definition at line 28 of file QBaseThreadHandler.hh.
Referenced by Check(), QDbWatchdogThreadHandler::Start(), and Stop().