|
TAO_RTEvent 2.0.5
|
A simple implementation of the Timeout_Generator based on the Reactor. More...
#include <EC_Reactive_Timeout_Generator.h>


Public Member Functions | |
| TAO_EC_Reactive_Timeout_Generator (ACE_Reactor *reactor=0) | |
| virtual | ~TAO_EC_Reactive_Timeout_Generator (void) |
| destructor | |
| virtual void | activate (void) |
| Activate any internal threads. | |
| virtual void | shutdown (void) |
| virtual int | schedule_timer (TAO_EC_Timeout_Filter *filter, const ACE_Time_Value &delta, const ACE_Time_Value &interval) |
| Add a timer at the given priority, returns the timer ID. | |
| virtual int | cancel_timer (const TAO_EC_QOS_Info &info, int id) |
| Cancel a timer at the given priority. | |
Private Attributes | |
| ACE_Reactor * | reactor_ |
| The reactor. | |
| TAO_EC_Timeout_Adapter | event_handler_ |
| An adapter to receive the timeout events. | |
A simple implementation of the Timeout_Generator based on the Reactor.
Implements the Timeout_Generator using an ACE_Reactor. Usually the same reactor that is used by the ORB where the EC runs.
| TAO_EC_Reactive_Timeout_Generator::TAO_EC_Reactive_Timeout_Generator | ( | ACE_Reactor * | reactor = 0 | ) |
Constructor. If <reactor> is 0 then we use the reactor in the ORB singleton.
| TAO_EC_Reactive_Timeout_Generator::~TAO_EC_Reactive_Timeout_Generator | ( | void | ) | [virtual] |
destructor
| void TAO_EC_Reactive_Timeout_Generator::activate | ( | void | ) | [virtual] |
Activate any internal threads.
Implements TAO_EC_Timeout_Generator.
| int TAO_EC_Reactive_Timeout_Generator::cancel_timer | ( | const TAO_EC_QOS_Info & | info, |
| int | id | ||
| ) | [virtual] |
Cancel a timer at the given priority.
Implements TAO_EC_Timeout_Generator.
| int TAO_EC_Reactive_Timeout_Generator::schedule_timer | ( | TAO_EC_Timeout_Filter * | filter, |
| const ACE_Time_Value & | delta, | ||
| const ACE_Time_Value & | interval | ||
| ) | [virtual] |
Add a timer at the given priority, returns the timer ID.
Implements TAO_EC_Timeout_Generator.
| void TAO_EC_Reactive_Timeout_Generator::shutdown | ( | void | ) | [virtual] |
Deactivate any internal threads, clients can destroy the object after calling this method.
Implements TAO_EC_Timeout_Generator.
An adapter to receive the timeout events.
The reactor.
1.7.4