10 #ifndef YARP_OS_PERIODICTHREAD_H
11 #define YARP_OS_PERIODICTHREAD_H
73 bool isRunning()
const;
78 bool isSuspended()
const;
85 bool setPeriod(
double period);
91 double getPeriod()
const;
112 double getEstimatedPeriod()
const;
119 void getEstimatedPeriod(
double& av,
double& std)
const;
124 unsigned int getIterations()
const;
130 double getEstimatedUsed()
const;
137 void getEstimatedUsed(
double& av,
double& std)
const;
152 int setPriority(
int priority,
int policy = -1);
158 int getPriority()
const;
164 int getPolicy()
const;
178 virtual bool threadInit();
186 virtual void threadRelease();
205 virtual void beforeStart();
212 virtual void afterStart(
bool success);
214 #ifndef DOXYGEN_SHOULD_SKIP_THIS
An abstraction for a periodic thread.
virtual void run()=0
Loop function.
void useSystemClock()
Configure YARP to use system time (this is the default).
The main, catch-all namespace for YARP.