diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-27 20:54:56 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-27 20:54:56 +0000 |
commit | b897ed99dafb3ad69009693593de52c269f11ff7 (patch) | |
tree | 030efd5e63c2010505194526b2c136aa0e0649e3 /TAO/tao/Bind_Dispatcher_Guard.inl | |
parent | 1289f5d315ccc6bd9f12f389084e990fd8200ccd (diff) | |
download | ATCD-b897ed99dafb3ad69009693593de52c269f11ff7.tar.gz |
Thu Jul 27 20:50:17 UTC 2006 William R. Otte <wotte@dre.vanderbilt.edu>
Diffstat (limited to 'TAO/tao/Bind_Dispatcher_Guard.inl')
-rw-r--r-- | TAO/tao/Bind_Dispatcher_Guard.inl | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/TAO/tao/Bind_Dispatcher_Guard.inl b/TAO/tao/Bind_Dispatcher_Guard.inl new file mode 100644 index 00000000000..c4a3477f7ee --- /dev/null +++ b/TAO/tao/Bind_Dispatcher_Guard.inl @@ -0,0 +1,46 @@ +// -*- C++ -*- +// +// $Id$ + +// =========================================================================== +// +// = LIBRARY +// TAO +// +// = AUTHOR +// Carlos O'Ryan <coryan@uci.edu>, +// Chad Elliott <elliott_c@ociweb.com> +// +// =========================================================================== + +#include "tao/Reply_Dispatcher.h" +#include "tao/Transport_Mux_Strategy.h" + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +ACE_INLINE void +TAO_Bind_Dispatcher_Guard::status (int s) +{ + this->status_ = s; +} + +ACE_INLINE int +TAO_Bind_Dispatcher_Guard::status (void) const +{ + return this->status_; +} + +ACE_INLINE int +TAO_Bind_Dispatcher_Guard::unbind_dispatcher (void) +{ + int const 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; +} + +TAO_END_VERSIONED_NAMESPACE_DECL |