OpenRTM-aist 2.0.2
Loading...
Searching...
No Matches
VxWorksRTExecutionContext.h
Go to the documentation of this file.
1// -*- C++ -*-
18#ifndef RTC_VXWORKSRTEXECUTIONCONTEXT_H
19#define RTC_VXWORKSRTEXECUTIONCONTEXT_H
20
21#include <vector>
22#include <iostream>
23
24#include <coil/Task.h>
25#include <coil/Mutex.h>
26#include <coil/Condition.h>
27
29
30
31
32namespace RTC_exp
33{
34 class TimeValue_nano;
57 {
58 public:
79
94
108 virtual void init(coil::Properties& props);
109
129 virtual int svc(void);
130
131
132
133 protected:
134 private:
152 void setPriority(coil::Properties& props);
170 void setStackSize(coil::Properties& props);
188 int sleep_nano(TimeValue_nano interval);
189 }; // class VxWorksRTExecutionContext
191 {
192 public:
193 TimeValue_nano(long sec=0, long usec=0);
194 TimeValue_nano(double timeval);
199 operator double() const;
200 int sign() const;
201 void normalize();
202 inline long int sec() const {return m_sec;}
203 inline long int nsec() const {return m_nsec;}
204 private:
205 long int m_sec;
206 long int m_nsec;
207 };
208} // namespace RTC
209
210
211extern "C"
212{
221};
222
223#endif // RTC_VXWORKSRTEXECUTIONCONTEXT_H
224
PeriodicExecutionContext class.
void VxWorksRTExecutionContextInit(RTC::Manager *manager)
Initialization function to register to ECFactory .
Manager class.
Definition Manager.h:91
PeriodicExecutionContext class.
Definition PeriodicExecutionContext.h:60
Definition VxWorksRTExecutionContext.h:191
TimeValue_nano(double timeval)
TimeValue_nano operator=(double time)
long int sec() const
Definition VxWorksRTExecutionContext.h:202
TimeValue_nano operator+(TimeValue_nano &tm)
TimeValue_nano operator-(TimeValue_nano &tm)
long int nsec() const
Definition VxWorksRTExecutionContext.h:203
TimeValue_nano(long sec=0, long usec=0)
VxWorksRTExecutionContext class.
Definition VxWorksRTExecutionContext.h:57
virtual int svc(void)
Thread execution function for ExecutionContext.
virtual ~VxWorksRTExecutionContext(void)
Destructor.
VxWorksRTExecutionContext()
Default Constructor.
virtual void init(coil::Properties &props)
Initialize the ExecutionContext.
Definition MultilayerCompositeEC.h:28