00001 // -*- C++ -*- 00002 // 00003 // $Id: LF_Event_Loop_Thread_Helper.inl 69150 2005-11-02 07:13:04Z ossama $ 00004 00005 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00006 00007 ACE_INLINE 00008 TAO_LF_Event_Loop_Thread_Helper::TAO_LF_Event_Loop_Thread_Helper ( 00009 TAO_Leader_Follower &leader_follower, 00010 TAO_LF_Strategy &lf_strategy, 00011 ACE_Time_Value *max_wait_time) 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 } 00018 00019 ACE_INLINE 00020 TAO_LF_Event_Loop_Thread_Helper::~TAO_LF_Event_Loop_Thread_Helper (void) 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 } 00026 00027 ACE_INLINE int 00028 TAO_LF_Event_Loop_Thread_Helper::event_loop_return (void) const 00029 { 00030 return this->event_loop_return_; 00031 } 00032 00033 TAO_END_VERSIONED_NAMESPACE_DECL