Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / Resume_Handle.inl
blobaf1a5ebb158502de51682d9c7d976c4126048daf
1 // -*- C++ -*-
2 //
3 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
5 ACE_INLINE
6 TAO_Resume_Handle::TAO_Resume_Handle (TAO_ORB_Core *orb_core,
7                                       ACE_HANDLE h)
8   : orb_core_ (orb_core),
9     handle_ (h),
10     flag_ (TAO_HANDLE_RESUMABLE)
14 ACE_INLINE
15 TAO_Resume_Handle::~TAO_Resume_Handle ()
17   if (this->flag_ == TAO_HANDLE_RESUMABLE)
18     this->resume_handle ();
22 ACE_INLINE void
23 TAO_Resume_Handle::set_flag (TAO_Handle_Resume_Flag fl)
25   this->flag_ = fl;
28 ACE_INLINE TAO_Resume_Handle &
29 TAO_Resume_Handle::operator= (const TAO_Resume_Handle &rhs)
31   if (this != &rhs)
32     {
33       this->orb_core_ = rhs.orb_core_;
34       this->handle_ = rhs.handle_;
35       this->flag_ = rhs.flag_;
36     }
38   return *this;
41 TAO_END_VERSIONED_NAMESPACE_DECL