summaryrefslogtreecommitdiff
path: root/TAO/tao/Resume_Handle.inl
diff options
context:
space:
mode:
authorbala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-07-06 04:41:00 +0000
committerbala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-07-06 04:41:00 +0000
commitd8ad30bbf6dbe53647040d40d2e53fbdf8edf4b8 (patch)
tree3874c3e46e81a1a1c5a6c459720e1c17cab62da2 /TAO/tao/Resume_Handle.inl
parent08c2939a52133c144b5f17b7f8556b5dc046c0b0 (diff)
downloadATCD-d8ad30bbf6dbe53647040d40d2e53fbdf8edf4b8.tar.gz
ChangeLogTag: Thu Jul 5 23:30:07 2001 Balachandran Natarajan <bala@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/Resume_Handle.inl')
-rw-r--r--TAO/tao/Resume_Handle.inl38
1 files changed, 38 insertions, 0 deletions
diff --git a/TAO/tao/Resume_Handle.inl b/TAO/tao/Resume_Handle.inl
new file mode 100644
index 00000000000..38aae6740f1
--- /dev/null
+++ b/TAO/tao/Resume_Handle.inl
@@ -0,0 +1,38 @@
+// -*- C++ -*-
+//$Id$
+
+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 ();
+
+ this->orb_core_ = 0;
+ this->handle_ = ACE_INVALID_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)
+{
+ this->orb_core_ = rhs.orb_core_;
+ this->handle_ = rhs.handle_;
+ this->flag_ = rhs.flag_;
+
+ return *this;
+}