blob: bf3c8e973a2378eb69a5753c85ac56c2ea20d6bc (
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
33
34
35
36
37
38
39
40
41
|
// -*- C++ -*-
//
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE
TAO_Resume_Handle::TAO_Resume_Handle (TAO_ORB_Core *orb_core,
ACE_HANDLE h)
: orb_core_ (orb_core),
handle_ (h),
flag_ (TAO_HANDLE_RESUMABLE)
{
}
ACE_INLINE
TAO_Resume_Handle::~TAO_Resume_Handle (void)
{
if (this->flag_ == TAO_HANDLE_RESUMABLE)
this->resume_handle ();
}
ACE_INLINE void
TAO_Resume_Handle::set_flag (TAO_Handle_Resume_Flag fl)
{
this->flag_ = fl;
}
ACE_INLINE TAO_Resume_Handle &
TAO_Resume_Handle::operator= (const TAO_Resume_Handle &rhs)
{
if (this != &rhs)
{
this->orb_core_ = rhs.orb_core_;
this->handle_ = rhs.handle_;
this->flag_ = rhs.flag_;
}
return *this;
}
TAO_END_VERSIONED_NAMESPACE_DECL
|