39 #ifndef ORO_ACTIVITY_HPP 40 #define ORO_ACTIVITY_HPP 124 Activity(
int scheduler,
int priority,
160 Activity(
int scheduler,
int priority,
Seconds period,
unsigned cpu_affinity,
168 virtual bool start();
170 virtual bool execute();
174 virtual bool timeout();
178 virtual bool isRunning()
const;
180 virtual bool isActive()
const;
182 virtual bool isPeriodic()
const;
184 virtual Seconds getPeriod()
const;
186 virtual bool setPeriod(
Seconds period);
192 void setWaitPeriodPolicy(
int p);
199 virtual bool initialize();
216 virtual bool breakLoop();
221 virtual void finalize();
A class for running a certain piece of code in a thread.
An object oriented wrapper around a condition variable.
static RTT_UNUSED bool setCpuAffinity(ThreadInterface *thread, const std::bitset< 16 > &cpu_affinity)
Interface to start/stop and query a Activity.
An Activity executes a RunnableInterface object in a (periodic) thread.
static std::bitset< 16 > getCpuAffinity(ThreadInterface *thread)
An object oriented wrapper around a non recursive mutex.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
static bool trigger(TaskContext *tc)