50 #include <boost/weak_ptr.hpp> 89 return manager_->getSimulationPeriod();
127 #if defined(RTT_VERSION_GTE) 128 #if RTT_VERSION_GTE(2,9,0) 208 #if defined(RTT_VERSION_GTE) 209 #if RTT_VERSION_GTE(2,9,0) 215 #if defined(RTT_VERSION_GTE) 216 #if RTT_VERSION_GTE(2,9,0) 217 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()