39 #ifndef OS_THREAD_INTERFACE_HPP 40 #define OS_THREAD_INTERFACE_HPP 45 #include "../rtt-config.h" 70 virtual bool start() = 0;
80 virtual bool stop() = 0;
85 virtual Seconds getPeriod()
const = 0;
92 virtual bool setPeriod(
Seconds new_period) = 0;
97 virtual nsecs getPeriodNS()
const = 0;
108 virtual bool isRunning()
const = 0;
115 virtual bool isActive()
const = 0;
120 virtual const char* getName()
const = 0;
133 virtual const RTOS_TASK * getTask()
const = 0;
153 virtual bool setScheduler(
int sched_type) = 0;
162 virtual int getScheduler()
const = 0;
170 virtual bool setPriority(
int priority) = 0;
179 virtual int getPriority()
const = 0;
191 virtual unsigned int getPid()
const = 0;
196 virtual unsigned getCpuAffinity()
const = 0;
198 virtual void setMaxOverrun(
int m) = 0;
200 virtual int getMaxOverrun()
const = 0;
206 virtual void setWaitPeriodPolicy(
int p) = 0;
211 virtual void yield() = 0;
double Seconds
Seconds are stored as a double precision float.
A thread which is being run.
int threadnb
Threads are given an unique number, which follows thread creation order.
unsigned int threadNumber() const
The unique thread number (within the same process).
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
long long nsecs
nanoseconds as a signed long long.