OpenDDS  Snapshot(2023/04/28-20:55)
Public Member Functions | Public Attributes | List of all members
OpenDDS::ICE::ScheduleTimerCommand Struct Reference
Inheritance diagram for OpenDDS::ICE::ScheduleTimerCommand:
Inheritance graph
[legend]
Collaboration diagram for OpenDDS::ICE::ScheduleTimerCommand:
Collaboration graph
[legend]

Public Member Functions

 ScheduleTimerCommand (ACE_Reactor *a_reactor, ACE_Event_Handler *a_event_handler, const TimeDuration &a_delay)
 
void execute ()
 
- Public Member Functions inherited from OpenDDS::DCPS::ReactorInterceptor::Command
 Command ()
 
virtual ~Command ()
 
- Public Member Functions inherited from OpenDDS::DCPS::RcObject
virtual ~RcObject ()
 
virtual void _add_ref ()
 
virtual void _remove_ref ()
 
long ref_count () const
 
WeakObject_get_weak_object () const
 

Public Attributes

ACE_Reactorreactor
 
ACE_Event_Handlerevent_handler
 
TimeDuration delay
 

Additional Inherited Members

- Protected Member Functions inherited from OpenDDS::DCPS::ReactorInterceptor::Command
const ACE_Reactorreactor () const
 
ACE_Reactorreactor ()
 
- Protected Member Functions inherited from OpenDDS::DCPS::RcObject
 RcObject ()
 

Detailed Description

Definition at line 27 of file AgentImpl.cpp.

Constructor & Destructor Documentation

◆ ScheduleTimerCommand()

OpenDDS::ICE::ScheduleTimerCommand::ScheduleTimerCommand ( ACE_Reactor a_reactor,
ACE_Event_Handler a_event_handler,
const TimeDuration a_delay 
)
inline

Definition at line 32 of file AgentImpl.cpp.

32  :
33  reactor(a_reactor), event_handler(a_event_handler), delay(a_delay) {}
ACE_Event_Handler * event_handler
Definition: AgentImpl.cpp:29

Member Function Documentation

◆ execute()

void OpenDDS::ICE::ScheduleTimerCommand::execute ( void  )
inlinevirtual

Implements OpenDDS::DCPS::ReactorInterceptor::Command.

Definition at line 35 of file AgentImpl.cpp.

References ACE_Reactor::cancel_timer(), ACE_Reactor::schedule_timer(), and OpenDDS::DCPS::TimeDuration::value().

36  {
39  }
const ACE_Time_Value & value() const
virtual long schedule_timer(ACE_Event_Handler *event_handler, const void *arg, const ACE_Time_Value &delay, const ACE_Time_Value &interval=ACE_Time_Value::zero)
virtual int cancel_timer(long timer_id, const void **arg=0, int dont_call_handle_close=1)
ACE_Event_Handler * event_handler
Definition: AgentImpl.cpp:29

Member Data Documentation

◆ delay

TimeDuration OpenDDS::ICE::ScheduleTimerCommand::delay

Definition at line 30 of file AgentImpl.cpp.

◆ event_handler

ACE_Event_Handler* OpenDDS::ICE::ScheduleTimerCommand::event_handler

Definition at line 29 of file AgentImpl.cpp.

◆ reactor

ACE_Reactor* OpenDDS::ICE::ScheduleTimerCommand::reactor

Definition at line 28 of file AgentImpl.cpp.


The documentation for this struct was generated from the following file: