38 #ifndef ORO_ACTIVITY_INTERFACE_HPP 39 #define ORO_ACTIVITY_INTERFACE_HPP 41 #include "../Time.hpp" 42 #include "../os/ThreadInterface.hpp" 43 #include <boost/shared_ptr.hpp> 104 virtual bool start() = 0;
115 virtual bool stop() = 0;
128 virtual bool isRunning()
const = 0;
138 virtual bool isActive()
const = 0;
145 virtual Seconds getPeriod()
const = 0;
153 virtual bool isPeriodic()
const = 0;
162 virtual bool setPeriod(
Seconds s) = 0;
193 virtual bool execute() = 0;
224 virtual bool timeout() = 0;
A class for running a certain piece of code in a thread.
RunnableInterface * runner
boost::shared_ptr< ActivityInterface > shared_ptr
static RTT_UNUSED bool setCpuAffinity(ThreadInterface *thread, const std::bitset< 16 > &cpu_affinity)
Interface to start/stop and query a Activity.
static std::bitset< 16 > getCpuAffinity(ThreadInterface *thread)
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
void disableRun(RunnableInterface *caller)
static bool trigger(TaskContext *tc)