39 #ifndef ORO_TIMERTHREAD_HPP 40 #define ORO_TIMERTHREAD_HPP 46 #include <boost/shared_ptr.hpp> 47 #include <boost/weak_ptr.hpp> 49 #include "../os/Thread.hpp" 50 #include "../os/Mutex.hpp" 72 typedef std::vector<PeriodicActivity*> ActivityList ;
76 static const unsigned int MAX_ACTIVITIES = 64;
85 TimerThread(
int priority,
const std::string& name,
double periodicity,
unsigned cpu_affinity = ~0);
97 TimerThread(
int scheduler,
int priority,
const std::string& name,
double periodicity,
unsigned cpu_affinity = ~0);
116 static TimerThreadPtr Instance(
int priority,
double periodicity);
120 static TimerThreadPtr Instance(
int scheduler,
int priority,
double periodicity);
124 static TimerThreadPtr Instance(
int scheduler,
int priority,
double periodicity,
unsigned cpu_affinity);
126 virtual bool initialize();
128 virtual void finalize();
A Thread object executes user code in its own thread.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
An object oriented wrapper around a recursive mutex.