#include <TimerThread.hpp>
|
bool | addActivity (PeriodicActivity *t) |
|
bool | removeActivity (PeriodicActivity *t) |
|
| TimerThread (int priority, const std::string &name, double periodicity, unsigned cpu_affinity=~0) |
|
| TimerThread (int scheduler, int priority, const std::string &name, double periodicity, unsigned cpu_affinity=~0) |
|
virtual | ~TimerThread () |
|
virtual unsigned | getCpuAffinity () const |
|
virtual int | getMaxOverrun () const |
|
virtual const char * | getName () const |
|
void | getPeriod (secs &s, nsecs &ns) const |
|
virtual Seconds | getPeriod () const |
|
virtual nsecs | getPeriodNS () const |
|
virtual unsigned int | getPid () const |
|
virtual int | getPriority () const |
|
virtual int | getScheduler () const |
|
Seconds | getStopTimeout () const |
|
virtual RTOS_TASK * | getTask () |
|
virtual const RTOS_TASK * | getTask () const |
|
virtual bool | isActive () const |
|
virtual bool | isPeriodic () const |
|
virtual bool | isRunning () const |
|
virtual bool | setCpuAffinity (unsigned cpu_affinity) |
|
virtual void | setMaxOverrun (int m) |
|
bool | setPeriod (Seconds s) |
|
bool | setPeriod (secs s, nsecs ns) |
|
bool | setPeriod (TIME_SPEC p) |
|
virtual bool | setPriority (int priority) |
|
virtual bool | setScheduler (int sched_type) |
|
void | setStopTimeout (Seconds s) |
|
virtual void | setWaitPeriodPolicy (int p) |
|
virtual bool | start () |
|
virtual bool | stop () |
|
| Thread (int scheduler, int priority, double period, unsigned cpu_affinity, const std::string &name) |
|
virtual void | yield () |
|
virtual | ~Thread () |
|
bool | isSelf () const |
|
| ThreadInterface () |
|
unsigned int | threadNumber () const |
|
virtual | ~ThreadInterface () |
|
This Periodic Thread is meant for executing a PeriodicActivity object periodically.
- See also
- PeriodicActivity
Definition at line 69 of file TimerThread.hpp.
A Boost weak pointer is used to store non-owning pointers to shared objects.
Definition at line 140 of file TimerThread.hpp.
RTT::TimerThread::TimerThread |
( |
int |
priority, |
|
|
const std::string & |
name, |
|
|
double |
periodicity, |
|
|
unsigned |
cpu_affinity = ~0 |
|
) |
| |
Create a periodic Timer thread.
- Parameters
-
priority | The priority of this thread |
periodicity | The periodicity of this thread in seconds (e.g. 0.001 = 1000Hz ) |
Definition at line 95 of file TimerThread.cpp.
RTT::TimerThread::TimerThread |
( |
int |
scheduler, |
|
|
int |
priority, |
|
|
const std::string & |
name, |
|
|
double |
periodicity, |
|
|
unsigned |
cpu_affinity = ~0 |
|
) |
| |
Create a periodic Timer thread with a given scheduler type.
- Parameters
-
scheduler | The scheduler in which this thread runs |
priority | The priority of this thread within scheduler |
periodicity | The periodicity of this thread in seconds (e.g. 0.001 = 1000Hz ) |
Definition at line 101 of file TimerThread.cpp.
RTT::TimerThread::~TimerThread |
( |
| ) |
|
|
virtual |
Add an Timer that will be ticked every execution period Once added, a timer can not be removed.
Definition at line 113 of file TimerThread.cpp.
void RTT::TimerThread::finalize |
( |
| ) |
|
|
protectedvirtual |
bool RTT::TimerThread::initialize |
( |
| ) |
|
|
protectedvirtual |
TimerThreadPtr RTT::TimerThread::Instance |
( |
int |
priority, |
|
|
double |
periodicity |
|
) |
| |
|
static |
Create a TimerThread with a given priority and periodicity, using the default scheduler, ORO_SCHED_RT.
Definition at line 57 of file TimerThread.cpp.
TimerThreadPtr RTT::TimerThread::Instance |
( |
int |
scheduler, |
|
|
int |
priority, |
|
|
double |
periodicity |
|
) |
| |
|
static |
TimerThreadPtr RTT::TimerThread::Instance |
( |
int |
scheduler, |
|
|
int |
priority, |
|
|
double |
periodicity, |
|
|
unsigned |
cpu_affinity |
|
) |
| |
|
static |
void RTT::TimerThread::reorderList |
( |
| ) |
|
|
protected |
void RTT::TimerThread::step |
( |
| ) |
|
|
protectedvirtual |
bool RTT::extras::TimerThread::cleanup |
|
private |
const unsigned int RTT::extras::TimerThread::MAX_ACTIVITIES = 64 |
|
static |
The documentation for this class was generated from the following files: