19 #ifndef RTC_PERIODICEXECUTIONCONTEXT2_H 20 #define RTC_PERIODICEXECUTIONCONTEXT2_H 32 #define NUM_OF_LIFECYCLESTATE 4 35 #pragma warning( disable : 4290 ) 61 :
public virtual POA_RTC::ExecutionContextService,
62 public virtual PortableServer::RefCountServantBase,
143 virtual int open(
void *args);
164 virtual int svc(
void);
193 virtual int close(
unsigned long flags);
223 throw (CORBA::SystemException);
252 virtual RTC::ReturnCode_t
start(
void)
253 throw (CORBA::SystemException);
281 virtual RTC::ReturnCode_t
stop(
void)
282 throw (CORBA::SystemException);
304 virtual CORBA::Double
get_rate(
void)
305 throw (CORBA::SystemException);
336 virtual RTC::ReturnCode_t
set_rate(CORBA::Double rate)
337 throw (CORBA::SystemException);
372 virtual RTC::ReturnCode_t
374 throw (CORBA::SystemException);
408 virtual RTC::ReturnCode_t
410 throw (CORBA::SystemException);
443 virtual RTC::ReturnCode_t
445 throw (CORBA::SystemException);
473 virtual RTC::LifeCycleState
475 throw (CORBA::SystemException);
496 virtual RTC::ExecutionKind
get_kind(
void)
497 throw (CORBA::SystemException);
531 throw (CORBA::SystemException);
563 virtual RTC::ReturnCode_t
565 throw (CORBA::SystemException);
586 virtual RTC::ExecutionContextProfile*
get_profile(
void)
587 throw (CORBA::SystemException);
614 virtual RTC::ReturnCode_t
619 virtual RTC::ReturnCode_t
625 virtual RTC::ReturnCode_t
630 virtual RTC::ReturnCode_t
635 virtual RTC::ReturnCode_t
640 virtual RTC::ReturnCode_t
645 virtual RTC::ReturnCode_t
650 virtual RTC::ReturnCode_t
726 #pragma warning( default : 4290 ) 742 #endif // RTC_PERIODICEXECUTIONCONTEXT_H virtual ~PeriodicExecutionContext(void)
Destructor.
virtual RTC::ReturnCode_t deactivate_component(RTC::LightweightRTObject_ptr comp)
Deactivate an RT-component.
virtual RTC::ReturnCode_t onDeactivated(RTC_impl::RTObjectStateMachine *comp, long int count)
onDeactivated() template function
bool stringTo(To &val, const char *str)
Convert the given std::string to object.
Definition: stringutil.h:633
virtual RTC::ExecutionContextProfile * get_profile(void)
Get the ExecutionContextProfile.
Mutex class.
Definition: Mutex.h:40
virtual RTC::ReturnCode_t set_rate(CORBA::Double rate)
Set execution rate(Hz) of ExecutionContext.
coil::Mutex m_svcmutex
Definition: PeriodicExecutionContext.h:681
A base class for ExecutionContext.
Definition: ExecutionContextBase.h:369
Condition variable class for worker.
Definition: PeriodicExecutionContext.h:690
virtual RTC::ReturnCode_t onStopping()
onStopping() template function
PeriodicExecutionContext class.
Definition: PeriodicExecutionContext.h:60
Manager class.
Definition: Manager.h:81
virtual RTC::ReturnCode_t onReset(RTC_impl::RTObjectStateMachine *comp, long int count)
onReset() template function
coil::Mutex mutex_
Definition: PeriodicExecutionContext.h:692
virtual int svc(void)
Thread execution function for ExecutionContext.
ExecutionContext base class.
coil::CpuMask m_cpu
CPU affinity mask list.
Definition: PeriodicExecutionContext.h:720
WorkerThreadCtrl m_workerthread
A condition variable for external triggered worker.
Definition: PeriodicExecutionContext.h:705
virtual RTC::ReturnCode_t onWaitingActivated(RTC_impl::RTObjectStateMachine *comp, long int count)
onWaitingActivated() template function
virtual RTC::ReturnCode_t stop(void)
Stop the ExecutionContext.
virtual int close(unsigned long flags)
Thread execution function for ExecutionContext.
virtual int open(void *args)
Generate internal activity thread for ExecutionContext.
virtual CORBA::Double get_rate(void)
Get execution rate(Hz) of ExecutionContext.
Properties *const findNode(const std::string &key) const
Get node of properties.
virtual RTC::ReturnCode_t onActivated(RTC_impl::RTObjectStateMachine *comp, long int count)
onActivated() template function
virtual RTC::ExecutionKind get_kind(void)
Get the ExecutionKind.
virtual RTC::ReturnCode_t onAddedComponent(RTC::LightweightRTObject_ptr rtobj)
onAddedComponent() template function
virtual RTC::ReturnCode_t activate_component(RTC::LightweightRTObject_ptr comp)
Activate an RT-component.
bool running_
Definition: PeriodicExecutionContext.h:695
coil::Condition< coil::Mutex > cond_
Definition: PeriodicExecutionContext.h:694
virtual RTC::ReturnCode_t reset_component(RTC::LightweightRTObject_ptr comp)
Reset the RT-component.
bool m_svc
The thread running flag of ExecutionContext.
Definition: PeriodicExecutionContext.h:680
virtual RTC::ReturnCode_t add_component(RTC::LightweightRTObject_ptr comp)
Add an RT-component.
virtual RTC::ReturnCode_t onStarted()
onStarted() template function
virtual RTC::ReturnCode_t start(void)
Start the ExecutionContext.
bool m_nowait
Flag of ExecutionContext to run immediately (to run without waiting)
Definition: PeriodicExecutionContext.h:715
virtual RTC::ReturnCode_t onWaitingReset(RTC_impl::RTObjectStateMachine *comp, long int count)
onWaitingReset() template function
Logger class.
Definition: SystemLogger.h:99
RTC::Logger rtclog
Logger stream.
Definition: PeriodicExecutionContext.h:671
bool threadRunning()
Definition: PeriodicExecutionContext.h:658
Definition: RTObjectStateMachine.h:46
void PeriodicExecutionContextInit(RTC::Manager *manager)
Initialization function to register to ECFactory.
PeriodicExecutionContext()
Default Constructor.
Class represents a set of properties.
Definition: Properties.h:101
virtual RTC::ReturnCode_t onWaitingDeactivated(RTC_impl::RTObjectStateMachine *comp, long int count)
onWaitingDeactivated() template function
virtual RTC::ReturnCode_t remove_component(RTC::LightweightRTObject_ptr comp)
Remove the RT-Component from participant list.
std::vector< unsigned int > CpuMask
Definition: Affinity.h:30
Task class.
Definition: Task.h:39
Processor affinity operation class.
RTC::LightweightRTObject_ptr LightweightRTObject_ptr
Definition: ExecutionContextWorker.h:43
WorkerThreadCtrl()
Definition: PeriodicExecutionContext.h:692
virtual RTC::ReturnCode_t onRemovedComponent(RTC::LightweightRTObject_ptr rtobj)
onRemovedComponent() template function
void getProperty(coil::Properties &prop, const char *key, T &value)
Definition: PeriodicExecutionContext.h:591
virtual CORBA::Boolean is_running(void)
Check for ExecutionContext running state.
virtual RTC::LifeCycleState get_component_state(RTC::LightweightRTObject_ptr comp)
Get RT-component's state.
virtual void init(coil::Properties &props)
Initialize the ExecutionContext.
Definition: PeriodicExecutionContext.h:38
virtual void setCpuAffinity(coil::Properties &props)
setting CPU affinity from given properties