Base class for "queue-able", Custom (non-CORBA), Synchronous requests. More...
#include <CSD_TP_Custom_Synch_Request.h>
Public Member Functions | |
TP_Custom_Synch_Request (TP_Custom_Request_Operation *op, TP_Servant_State *servant_state) | |
Constructor. | |
virtual | ~TP_Custom_Synch_Request () |
Virtual Destructor. | |
bool | wait () |
Protected Member Functions | |
virtual void | dispatch_i () |
Dispatch the request to the servant. | |
virtual void | cancel_i () |
Cancel the request. | |
Private Attributes | |
TP_Synch_Helper | synch_helper_ |
Base class for "queue-able", Custom (non-CORBA), Synchronous requests.
TBD - Add description
Definition at line 47 of file CSD_TP_Custom_Synch_Request.h.
TAO::CSD::TP_Custom_Synch_Request::TP_Custom_Synch_Request | ( | TP_Custom_Request_Operation * | op, | |
TP_Servant_State * | servant_state | |||
) |
Constructor.
Definition at line 9 of file CSD_TP_Custom_Synch_Request.inl.
: TP_Custom_Request(op,servant_state) { }
TAO::CSD::TP_Custom_Synch_Request::~TP_Custom_Synch_Request | ( | ) | [virtual] |
void TAO::CSD::TP_Custom_Synch_Request::cancel_i | ( | ) | [protected, virtual] |
Cancel the request.
Implements TAO::CSD::TP_Request.
Definition at line 29 of file CSD_TP_Custom_Synch_Request.cpp.
{ this->cancel_op(); this->synch_helper_.cancelled(); }
void TAO::CSD::TP_Custom_Synch_Request::dispatch_i | ( | ) | [protected, virtual] |
Dispatch the request to the servant.
Implements TAO::CSD::TP_Request.
Definition at line 21 of file CSD_TP_Custom_Synch_Request.cpp.
{ this->execute_op(); this->synch_helper_.dispatched(); }
bool TAO::CSD::TP_Custom_Synch_Request::wait | ( | void | ) |
Wait until the request has been executed (and completes), or until it has been cancelled. Returns true if the request has been executed/completed, and returns false if the request has been cancelled.
Definition at line 18 of file CSD_TP_Custom_Synch_Request.inl.
{ return this->synch_helper_.wait_while_pending(); }
TP_Synch_Helper TAO::CSD::TP_Custom_Synch_Request::synch_helper_ [private] |
Helper used to block and unblock the thread that invokes our wait() method.
Definition at line 78 of file CSD_TP_Custom_Synch_Request.h.