39 #ifndef ORO_RTT_TIMER_HPP 40 #define ORO_RTT_TIMER_HPP 48 #include "../base/RunnableInterface.hpp" 122 Timer(TimerId max_timers,
int scheduler = -1,
int priority = 0);
131 virtual void timeout(TimerId timer_id);
137 void setMaxTimers(TimerId max);
147 bool startTimer(TimerId timer_id,
Seconds period);
156 bool arm(TimerId timer_id,
Seconds wait_time);
169 bool isArmed(TimerId timer_id)
const;
175 bool killTimer(TimerId timer_id);
TimerInfo(const TimerInfo &other)
double Seconds
Seconds are stored as a double precision float.
std::vector< TimerInfo > TimerIds
Index in vector is the timer id.
TimerInfo & operator=(const TimerInfo &other)
base::ActivityInterface * mThread
A class for running a certain piece of code in a thread.
int TimerId
A positive numeric ID representing a timer.
An object oriented wrapper around a condition variable.
Interface to start/stop and query a Activity.
double Seconds
The type used to store SI unit time keeping.
This class allows to define a timer object which can be armed in single shot and periodic mode...
An object oriented wrapper around a non recursive mutex.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
long long nsecs
nanoseconds as a signed long long.
long long nsecs
An integer representation of nanoseconds.