TAO
2.1.8
|
Wait according to the Leader-Follower model. Leader does the event loop of the Reactor and the Followers wait on the condition variable. More...
#include <Wait_On_Leader_Follower.h>
Public Member Functions | |
TAO_Wait_On_Leader_Follower (TAO_Transport *transport) | |
Constructor. More... | |
virtual | ~TAO_Wait_On_Leader_Follower (void) |
Destructor. More... | |
virtual int | sending_request (TAO_ORB_Core *orb_core, TAO_Message_Semantics msg_semantics) |
More... | |
virtual int | wait (ACE_Time_Value *max_wait_time, TAO_Synch_Reply_Dispatcher &rd) |
More... | |
virtual int | register_handler (void) |
More... | |
virtual bool | non_blocking (void) const |
More... | |
virtual bool | can_process_upcalls (void) const |
More... | |
![]() | |
TAO_Wait_Strategy (TAO_Transport *transport) | |
Constructor. More... | |
virtual | ~TAO_Wait_Strategy (void) |
Destructor. More... | |
virtual void | finished_request () |
virtual int | defer_upcall (ACE_Event_Handler *) |
bool | is_registered (void) const |
Get method for the flag. More... | |
void | is_registered (bool flag) |
Set method for the flag. More... | |
Additional Inherited Members | |
![]() | |
TAO_Transport * | transport_ |
Transport object. More... | |
bool | is_registered_ |
Wait according to the Leader-Follower model. Leader does the event loop of the Reactor and the Followers wait on the condition variable.
This implementation is to work with the Muxed Transport Mechanism. Here the state variables such as <Condition variable>=""> etc cannot be kept in the Wait Strategy, since the Wait Strategy is per Transport object and here the Transport is Muxed and hence there are multiple threads running in the same Transport context.
TAO_Wait_On_Leader_Follower::TAO_Wait_On_Leader_Follower | ( | TAO_Transport * | transport | ) |
Constructor.
|
virtual |
Destructor.
|
virtual |
Flag that indicates whether we can process requests while waiting for the reply. This flag is to check whether the thread can process upcalls while waiting for the reply. Some wait strategies, like Wait_On_LF_No_Upcall does not allow the client threads to process requests while waiting for the reply.
Implements TAO_Wait_Strategy.
Reimplemented in TAO::Wait_On_LF_No_Upcall.
|
virtual |
Returns a value to indicate whether the transport needs to set the socket on which it is waiting to non-blocking mode or not.
Implements TAO_Wait_Strategy.
|
virtual |
Register the handler needs with the reactor provided that it makes sense for the strategy.
Implements TAO_Wait_Strategy.
|
virtual |
The user is going to send a request, prepare any internal variables because the reply may arrive before the user calls wait.
Reimplemented from TAO_Wait_Strategy.
|
virtual |
Base class virtual method. Wait till the reply_received
flag is true or the time expires.
Implements TAO_Wait_Strategy.
Reimplemented in TAO::Wait_On_LF_No_Upcall.