Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / LF_Event_Loop_Thread_Helper.inl
blob877dd2526cf9169f9088eecd079a52b9d409a298
1 // -*- C++ -*-
2 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
4 ACE_INLINE
5 TAO_LF_Event_Loop_Thread_Helper::TAO_LF_Event_Loop_Thread_Helper (
6   TAO_Leader_Follower &leader_follower,
7   TAO_LF_Strategy &lf_strategy,
8   ACE_Time_Value *max_wait_time)
9   : leader_follower_ (leader_follower)
10   , lf_strategy_ (lf_strategy)
12   this->event_loop_return_ =
13     this->lf_strategy_.set_event_loop_thread (max_wait_time, leader_follower_);
16 ACE_INLINE
17 TAO_LF_Event_Loop_Thread_Helper::~TAO_LF_Event_Loop_Thread_Helper ()
19   int const call_reset = (this->event_loop_return_ == 0);
20   this->lf_strategy_.reset_event_loop_thread (call_reset,
21                                               this->leader_follower_);
24 ACE_INLINE int
25 TAO_LF_Event_Loop_Thread_Helper::event_loop_return () const
27   return this->event_loop_return_;
30 TAO_END_VERSIONED_NAMESPACE_DECL