summaryrefslogtreecommitdiff
path: root/ace/Thread_Manager.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1996-12-08 00:08:45 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1996-12-08 00:08:45 +0000
commite5aac168f9bb01257e912050aa5137551ea394e7 (patch)
tree5b32d0edb97c3bebcf6aee4a2d57aa40763f7b29 /ace/Thread_Manager.cpp
parenta54582c074ef294353ef67380b782e957aad3522 (diff)
downloadATCD-e5aac168f9bb01257e912050aa5137551ea394e7.tar.gz
jammer
Diffstat (limited to 'ace/Thread_Manager.cpp')
-rw-r--r--ace/Thread_Manager.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/ace/Thread_Manager.cpp b/ace/Thread_Manager.cpp
index 1573e94ed26..fa2267a443c 100644
--- a/ace/Thread_Manager.cpp
+++ b/ace/Thread_Manager.cpp
@@ -98,11 +98,10 @@ ACE_Thread_Manager::thr_self (ACE_hthread_t &self)
ACE_Thread_Descriptor td;
ACE_thread_t id = ACE_OS::thr_self ();
- int i = this->thread_descriptor_i (id, td);
+ if (this->thread_descriptor_i (id, td) == -1)
+ return -1;
- if (i == -1)
- return -1;
- handle = &this->thr_table_[i].thr_handle_;
+ handle = &td.thr_handle_;
// Update the TSS cache.
ACE_LOG_MSG->thr_handle (handle);