TAO_LF_Event_Loop_Thread_Helper Class Reference

Helper class to enter and exit the Leader/Followers event loop. More...

#include <LF_Event_Loop_Thread_Helper.h>

Collaboration diagram for TAO_LF_Event_Loop_Thread_Helper:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_LF_Event_Loop_Thread_Helper (TAO_Leader_Follower &leader_follower, TAO_LF_Strategy &lf_strategy, ACE_Time_Value *max_wait_time)
 Constructor.

 ~TAO_LF_Event_Loop_Thread_Helper (void)
 Destructor.

int event_loop_return (void) const
 Calls on the leader/followers object.


Private Attributes

TAO_Leader_Followerleader_follower_
 Reference to leader/followers object.

TAO_LF_Strategylf_strategy_
 The Leader/Follower Strategy used by this ORB.

int event_loop_return_

Detailed Description

Helper class to enter and exit the Leader/Followers event loop.

Uses the Guard idiom to enter and exit the Leader/Followers event loop.

Definition at line 33 of file LF_Event_Loop_Thread_Helper.h.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE TAO_LF_Event_Loop_Thread_Helper::TAO_LF_Event_Loop_Thread_Helper TAO_Leader_Follower leader_follower,
TAO_LF_Strategy lf_strategy,
ACE_Time_Value max_wait_time
 

Constructor.

Definition at line 8 of file LF_Event_Loop_Thread_Helper.inl.

References event_loop_return_, lf_strategy_, and TAO_LF_Strategy::set_event_loop_thread().

00012   : leader_follower_ (leader_follower)
00013   , lf_strategy_ (lf_strategy)
00014 {
00015   this->event_loop_return_ =
00016     this->lf_strategy_.set_event_loop_thread (max_wait_time, leader_follower_);
00017 }

ACE_INLINE TAO_LF_Event_Loop_Thread_Helper::~TAO_LF_Event_Loop_Thread_Helper void   ) 
 

Destructor.

Definition at line 20 of file LF_Event_Loop_Thread_Helper.inl.

References event_loop_return_, lf_strategy_, and TAO_LF_Strategy::reset_event_loop_thread().

00021 {
00022   int call_reset = (this->event_loop_return_ == 0);
00023   this->lf_strategy_.reset_event_loop_thread (call_reset,
00024                                               this->leader_follower_);
00025 }


Member Function Documentation

ACE_INLINE int TAO_LF_Event_Loop_Thread_Helper::event_loop_return void   )  const
 

Calls on the leader/followers object.

Definition at line 28 of file LF_Event_Loop_Thread_Helper.inl.

References event_loop_return_.

Referenced by TAO_ORB_Core::run().

00029 {
00030   return this->event_loop_return_;
00031 }


Member Data Documentation

int TAO_LF_Event_Loop_Thread_Helper::event_loop_return_ [private]
 

Remembers the status returned while trying to enter the event loop.

Definition at line 56 of file LF_Event_Loop_Thread_Helper.h.

Referenced by event_loop_return(), TAO_LF_Event_Loop_Thread_Helper(), and ~TAO_LF_Event_Loop_Thread_Helper().

TAO_Leader_Follower& TAO_LF_Event_Loop_Thread_Helper::leader_follower_ [private]
 

Reference to leader/followers object.

Definition at line 49 of file LF_Event_Loop_Thread_Helper.h.

TAO_LF_Strategy& TAO_LF_Event_Loop_Thread_Helper::lf_strategy_ [private]
 

The Leader/Follower Strategy used by this ORB.

Definition at line 52 of file LF_Event_Loop_Thread_Helper.h.

Referenced by TAO_LF_Event_Loop_Thread_Helper(), and ~TAO_LF_Event_Loop_Thread_Helper().


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 12:22:10 2006 for TAO by doxygen 1.3.6