32 #include <boost/function.hpp>
33 #include <boost/thread.hpp>
34 #include <boost/thread/condition.hpp>
35 #include <boost/timer.hpp>
76 virtual void execute() = 0;
88 virtual void cancel();
97 virtual bool isCancelRequested();
108 virtual bool continueExec();
116 virtual void waitDone();
117 virtual bool isDone();
130 void timerBeforeCycle();
132 void timerAfterCycle();
boost::recursive_mutex doneMutex
ostream & operator<<(ostream &out, const RepetitiveTask &t)
A task is a self.contained piece of work that can be executed by another thread.
A task that already provides a base frame for common logic of interruptible tasks.
rsc::logging::LoggerPtr logger
boost::condition doneCondition
volatile bool cancelRequest
boost::shared_ptr< Logger > LoggerPtr