Helper class to enter and exit the Leader/Followers event loop. More...
#include <LF_Event_Loop_Thread_Helper.h>
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 set_event_loop_thread on the leader/followers object. | |
Private Attributes | |
TAO_Leader_Follower & | leader_follower_ |
Reference to leader/followers object. | |
TAO_LF_Strategy & | lf_strategy_ |
The Leader/Follower Strategy used by this ORB. | |
int | event_loop_return_ |
Remembers the status returned while trying to enter the event loop. |
Helper class to enter and exit the Leader/Followers event loop.
Uses the Guard idiom to enter and exit the Leader/Followers event loop.
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 | |||
) | [inline] |
Constructor.
TAO_LF_Event_Loop_Thread_Helper::~TAO_LF_Event_Loop_Thread_Helper | ( | void | ) | [inline] |
Destructor.
int TAO_LF_Event_Loop_Thread_Helper::event_loop_return | ( | void | ) | const [inline] |
Calls set_event_loop_thread
on the leader/followers object.
int TAO_LF_Event_Loop_Thread_Helper::event_loop_return_ [private] |
Remembers the status returned while trying to enter the event loop.
Reference to leader/followers object.
The Leader/Follower Strategy used by this ORB.