1 #ifndef _ots_WorkLoop_h
2 #define _ots_WorkLoop_h
4 #include <toolbox/task/WorkLoop.h>
6 #include "toolbox/lang/Class.h"
10 class WorkLoop :
public virtual toolbox::lang::Class
16 void startWorkLoop(
void);
17 bool stopWorkLoop(
void);
18 bool isActive(
void)
const;
21 volatile bool continueWorkLoop_;
23 virtual bool workLoopThread(toolbox::task::WorkLoop* workLoop) = 0;
26 const std::string& getWorkLoopName(
void)
const {
return workLoopName_; }
29 const std::string workLoopName_;
30 const std::string workLoopType_;
31 toolbox::task::WorkLoop* workLoop_;
32 toolbox::task::ActionSignature* job_;