summaryrefslogtreecommitdiff
path: root/TAO/tao/Synch_Invocation.inl
blob: 3b819af867280cea6b94d470d2a4afd4c4ae0a10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// -*- C++ -*-
//
// $Id$

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