OpenRTM-aist  2.0.1
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 
32 namespace RTC_exp
33 {
34  class TimeValue_nano;
57  {
58  public:
79 
93  virtual ~VxWorksRTExecutionContext(void);
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);
195  ~TimeValue_nano();
198  TimeValue_nano operator=(double time);
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 
211 extern "C"
212 {
221 };
222 
223 #endif // RTC_VXWORKSRTEXECUTIONCONTEXT_H
224 
RTC_exp::TimeValue_nano::operator+
TimeValue_nano operator+(TimeValue_nano &tm)
RTC_exp
Definition: MultilayerCompositeEC.h:27
RTC_exp::TimeValue_nano::~TimeValue_nano
~TimeValue_nano()
RTC_exp::PeriodicExecutionContext
PeriodicExecutionContext class.
Definition: PeriodicExecutionContext.h:55
RTC_exp::VxWorksRTExecutionContext::init
virtual void init(coil::Properties &props)
Initialize the ExecutionContext.
RTC_exp::TimeValue_nano::operator=
TimeValue_nano operator=(double time)
RTC_exp::VxWorksRTExecutionContext::svc
virtual int svc(void)
Thread execution function for ExecutionContext.
RTC_exp::TimeValue_nano::sign
int sign() const
RTC_exp::TimeValue_nano::sec
long int sec() const
Definition: VxWorksRTExecutionContext.h:202
RTC_exp::TimeValue_nano::operator-
TimeValue_nano operator-(TimeValue_nano &tm)
RTC_exp::VxWorksRTExecutionContext
VxWorksRTExecutionContext class.
Definition: VxWorksRTExecutionContext.h:55
VxWorksRTExecutionContextInit
void VxWorksRTExecutionContextInit(RTC::Manager *manager)
Initialization function to register to ECFactory.
RTC_exp::TimeValue_nano::nsec
long int nsec() const
Definition: VxWorksRTExecutionContext.h:203
RTC_exp::VxWorksRTExecutionContext::VxWorksRTExecutionContext
VxWorksRTExecutionContext()
Default Constructor.
RTC_exp::TimeValue_nano
Definition: VxWorksRTExecutionContext.h:190
RTC::Manager
Manager class.
Definition: Manager.h:90
RTC::Properties
coil::Properties Properties
Definition: RTC.h:72
RTC_exp::TimeValue_nano::normalize
void normalize()
RTC_exp::TimeValue_nano::TimeValue_nano
TimeValue_nano(long sec=0, long usec=0)
PeriodicExecutionContext.h
PeriodicExecutionContext class.
RTC_exp::VxWorksRTExecutionContext::~VxWorksRTExecutionContext
virtual ~VxWorksRTExecutionContext(void)
Destructor.