// -*- C++ -*-
//
// $Id: Synch_Invocation.inl 81632 2008-05-07 09:19:05Z vzykov $

TAO_BEGIN_VERSIONED_NAMESPACE_DECL

namespace TAO
{
  ACE_INLINE
  Reply_Guard::Reply_Guard (Invocation_Base *b,
                            Invocation_Status s)
    : invocation_ (b)
    , status_ (s)
  {
  }

  ACE_INLINE
  Reply_Guard::~Reply_Guard (void)
  {
#if TAO_HAS_INTERCEPTORS == 1
    this->invocation_->invoke_status (this->status_);
#endif  /* TAO_HAS_INTERCEPTORS == 1 */
  }

  ACE_INLINE void
  Reply_Guard::set_status (Invocation_Status s)
  {
    this->status_ = s;
  }
}

TAO_END_VERSIONED_NAMESPACE_DECL
