summaryrefslogtreecommitdiff
path: root/ace/Thread_Manager.i
diff options
context:
space:
mode:
authorgonzo <gonzo@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-06-22 07:37:41 +0000
committergonzo <gonzo@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-06-22 07:37:41 +0000
commitf078bbbfd4cd9e430eb7a2d69d50ed146f343c1d (patch)
treec46bb3307f040375d36428e9be7ae86f54cd5878 /ace/Thread_Manager.i
parent2d7a7c9bdd96fda2e35f9501ce7224bf3cb17061 (diff)
downloadATCD-f078bbbfd4cd9e430eb7a2d69d50ed146f343c1d.tar.gz
Changes on Thread_Manager for Borland compilers
Diffstat (limited to 'ace/Thread_Manager.i')
-rw-r--r--ace/Thread_Manager.i16
1 files changed, 15 insertions, 1 deletions
diff --git a/ace/Thread_Manager.i b/ace/Thread_Manager.i
index 8ba47742d61..c01207cb2d2 100644
--- a/ace/Thread_Manager.i
+++ b/ace/Thread_Manager.i
@@ -5,7 +5,8 @@
ACE_INLINE
ACE_Thread_Descriptor_Base::ACE_Thread_Descriptor_Base (void)
- : thr_handle_ (ACE_OS::NULL_hthread)
+ : thr_id_ (ACE_OS::NULL_thread),
+ thr_handle_ (ACE_OS::NULL_hthread)
{
}
@@ -14,6 +15,19 @@ ACE_Thread_Descriptor_Base::~ACE_Thread_Descriptor_Base (void)
{
}
+ACE_INLINE int
+ACE_Thread_Descriptor_Base::operator==(const ACE_Thread_Descriptor_Base &rhs) const
+{
+ return ACE_OS::thr_cmp (this->thr_handle_, rhs.thr_handle_) == 0
+ && ACE_OS::thr_equal (this->thr_id_, rhs.thr_id_) == 0;
+}
+
+ACE_INLINE int
+ACE_Thread_Descriptor_Base::operator!=(const ACE_Thread_Descriptor_Base &rhs) const
+{
+ return !(*this == rhs);
+}
+
// Unique thread id.
ACE_INLINE ACE_thread_t
ACE_Thread_Descriptor::self (void)