18#ifndef RTC_EXTTRIGEXECUTIONCONTEXT_H
19#define RTC_EXTTRIGEXECUTIONCONTEXT_H
23#include <condition_variable>
53 :
public virtual POA_OpenRTM::ExtTrigExecutionContextService,
54 public virtual PortableServer::RefCountServantBase,
164 int close(
unsigned long flags)
override;
268 RTC::ReturnCode_t
stop()
override;
321 RTC::ReturnCode_t
set_rate(CORBA::Double rate)
override;
509 RTC::ReturnCode_t
add_component(RTC::LightweightRTObject_ptr comp)
override;
600 std::lock_guard<std::mutex> guard(m_svcmutex);
620 std::mutex m_svcmutex;
633 std::condition_variable cond_;
ExecutionContext base class.
void ExtTrigExecutionContextInit(RTC::Manager *manager)
Register Factory class for this ExecutionContext.
A base class for ExecutionContext.
Definition ExecutionContextBase.h:366
ExecutionContext class that enables one step execution.
Definition ExtTrigExecutionContext.h:57
RTC::ReturnCode_t start() override
Start the ExecutionContext.
RTC::ReturnCode_t set_rate(CORBA::Double rate) override
Set execution rate(Hz) of ExecutionContext.
int close(unsigned long flags) override
Thread execution function for ExecutionContext.
ExtTrigExecutionContext()
Constructor.
RTC::ReturnCode_t deactivate_component(RTC::LightweightRTObject_ptr comp) override
Deactivate an RT-component.
CORBA::Boolean is_running() override
Check for ExecutionContext running state.
RTC::ReturnCode_t onWaitingActivated(RTC_impl::RTObjectStateMachine *comp, long int count) override
onWaitingActivated() template function
RTC::ExecutionKind get_kind() override
Get the ExecutionKind.
RTC::ExecutionContextProfile * get_profile() override
Get the ExecutionContextProfile.
~ExtTrigExecutionContext() override
Destructor.
CORBA::Double get_rate() override
Get execution rate(Hz) of ExecutionContext.
RTC::ReturnCode_t onAddedComponent(RTC::LightweightRTObject_ptr rtobj) override
onAddedComponent() template function
void tick() override
Move forward one step of ExecutionContext.
RTC::ReturnCode_t onStarted() override
onStarted() template function
RTC::ReturnCode_t stop() override
Stop the ExecutionContext.
RTC::LifeCycleState get_component_state(RTC::LightweightRTObject_ptr comp) override
Get RT-component's state.
RTC::ReturnCode_t remove_component(RTC::LightweightRTObject_ptr comp) override
Remove the RT-Component from participant list.
RTC::ReturnCode_t onWaitingReset(RTC_impl::RTObjectStateMachine *comp, long int count) override
onWaitingReset() template function
int svc() override
Invoke each component's operation.
RTC::ReturnCode_t onWaitingDeactivated(RTC_impl::RTObjectStateMachine *comp, long int count) override
onWaitingDeactivated() template function
RTC::ReturnCode_t activate_component(RTC::LightweightRTObject_ptr comp) override
Activate an RT-component.
int open(void *args) override
Generate internal activity thread for ExecutionContext.
RTC::ReturnCode_t onRemovedComponent(RTC::LightweightRTObject_ptr rtobj) override
onRemovedComponent() template function
RTC::ReturnCode_t add_component(RTC::LightweightRTObject_ptr comp) override
Add an RT-component.
RTC::ReturnCode_t reset_component(RTC::LightweightRTObject_ptr comp) override
Reset the RT-component.
Logger class.
Definition SystemLogger.h:101
Manager class.
Definition Manager.h:91
Definition RTObjectStateMachine.h:43