TAO
2.0.8
|
#include <Wait_On_LF_No_Upcall.h>
Public Member Functions | |
Wait_On_LF_No_Upcall (TAO_Transport *t) | |
Constructor. | |
virtual | ~Wait_On_LF_No_Upcall (void) |
Destructor. | |
virtual int | wait (ACE_Time_Value *max_wait_time, TAO_Synch_Reply_Dispatcher &rd) |
virtual bool | can_process_upcalls (void) const |
virtual int | defer_upcall (ACE_Event_Handler *) |
TAO::Wait_On_LF_No_Upcall::Wait_On_LF_No_Upcall | ( | TAO_Transport * | t | ) | [explicit] |
Constructor.
TAO::Wait_On_LF_No_Upcall::~Wait_On_LF_No_Upcall | ( | void | ) | [virtual] |
Destructor.
bool TAO::Wait_On_LF_No_Upcall::can_process_upcalls | ( | void | ) | const [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.
Reimplemented from TAO_Wait_On_Leader_Follower.
int TAO::Wait_On_LF_No_Upcall::defer_upcall | ( | ACE_Event_Handler * | eh | ) | [virtual] |
Method to support deffering an upcall event till later in cases where can_process_upcalls() returns false. Some wait strategies like Wait_On_LF_No_Upcall allow an event to be deferred at the Leader_Follower which resumes the upcall at an opportune moment (when a new leader thread is activated).
Reimplemented from TAO_Wait_Strategy.
int TAO::Wait_On_LF_No_Upcall::wait | ( | ACE_Time_Value * | max_wait_time, |
TAO_Synch_Reply_Dispatcher & | rd | ||
) | [virtual] |
Base class virtual method. Wait till the reply_received
flag is true or the time expires.
Reimplemented from TAO_Wait_On_Leader_Follower.