42 #include <boost/weak_ptr.hpp> 81 return manager_->getSimulationPeriod();
119 #if defined(RTT_VERSION_GTE) 120 #if RTT_VERSION_GTE(2,9,0) 200 #if defined(RTT_VERSION_GTE) 201 #if RTT_VERSION_GTE(2,9,0) 207 #if defined(RTT_VERSION_GTE) 208 #if RTT_VERSION_GTE(2,9,0) 209 this->work(RunnableInterface::TimeOut);
virtual void work(WorkReason reason)
virtual bool isPeriodic() const
virtual bool initialize()
bool active_
True if start() has been called.
RTT::Seconds period_
The desired minimum execution period.
bool running_
True after start() has succeeded.
SimClockActivity(RTT::base::RunnableInterface *run=0, const std::string &name="SimClockActivity")
virtual bool isActive() const
virtual unsigned getCpuAffinity() const
static boost::shared_ptr< SimClockThread > GetInstance()
Get an instance to the singleton SimClockThread or NULL.
static TimeService * Instance()
virtual bool run(RunnableInterface *r)
RunnableInterface * runner
A centralized list of all TaskContexts using SimClockActivity.
virtual RTT::os::TimeService::ticks getLastExecutionTicks() const
virtual bool setCpuAffinity(unsigned cpu)
virtual ~SimClockActivity()
virtual bool isRunning() const
virtual void finalize()=0
virtual RTT::Seconds getPeriod() const
virtual bool initialize()=0
boost::shared_ptr< SimClockActivityManager > manager_
Parent activity manager.
RTT::os::TimeService::ticks last_
The last time the activity was executed.
virtual bool setPeriod(RTT::Seconds s)
virtual RTT::os::ThreadInterface * thread()
static Logger::LogFunction endlog()