diff options
author | bala <balanatarajan@users.noreply.github.com> | 2002-12-22 17:28:08 +0000 |
---|---|---|
committer | bala <balanatarajan@users.noreply.github.com> | 2002-12-22 17:28:08 +0000 |
commit | 0916183f7338ecca5484aec4d365d14d3ece47e3 (patch) | |
tree | b2aef66ef985b97b5c22381b7bacf7e5c70c72e1 /TAO/tao/Bind_Dispatcher_Guard.i | |
parent | e77549b2a17217688666eb4b175949db4adf4fab (diff) | |
download | ATCD-0916183f7338ecca5484aec4d365d14d3ece47e3.tar.gz |
ChangeLogTag:Sun Dec 22 11:26:30 2002 Balachandran Natarajan <bala@isis-server.isis.vanderbilt.edu>
Diffstat (limited to 'TAO/tao/Bind_Dispatcher_Guard.i')
-rw-r--r-- | TAO/tao/Bind_Dispatcher_Guard.i | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/TAO/tao/Bind_Dispatcher_Guard.i b/TAO/tao/Bind_Dispatcher_Guard.i index 3c497e3c03f..64bce7bf6f6 100644 --- a/TAO/tao/Bind_Dispatcher_Guard.i +++ b/TAO/tao/Bind_Dispatcher_Guard.i @@ -16,22 +16,27 @@ #include "tao/Transport_Mux_Strategy.h" -ACE_INLINE -TAO_Bind_Dispatcher_Guard::TAO_Bind_Dispatcher_Guard ( - CORBA::ULong request_id, - TAO_Reply_Dispatcher* rd, - TAO_Transport_Mux_Strategy* tms) - : status_(0), - request_id_(request_id), - rd_(rd), - tms_(tms) +ACE_INLINE void +TAO_Bind_Dispatcher_Guard::status (int s) { - this->status_ = this->tms_->bind_dispatcher (this->request_id_, - this->rd_); + this->status_ = s; } -ACE_INLINE int & -TAO_Bind_Dispatcher_Guard::status (void) +ACE_INLINE int +TAO_Bind_Dispatcher_Guard::status (void) const { - return status_; + return this->status_; +} + +ACE_INLINE int +TAO_Bind_Dispatcher_Guard::unbind_dispatcher (void) +{ + int retval = + this->tms_->unbind_dispatcher (this->request_id_); + + // Already unbound and so do not try again during destruction. + this->status_ = + TAO_Bind_Dispatcher_Guard::NO_UNBIND; + + return retval; } |