summaryrefslogtreecommitdiff
path: root/ace/Thread_Manager.i
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-10-07 03:58:33 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-10-07 03:58:33 +0000
commitfb85054e67f0f86330560e734fba92ceaaea54ed (patch)
treeb34ffede153369290b047098c8b15318b2316e32 /ace/Thread_Manager.i
parent75820fc78d4e7d30506a5077630a5ff079b418c0 (diff)
downloadATCD-fb85054e67f0f86330560e734fba92ceaaea54ed.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Thread_Manager.i')
-rw-r--r--ace/Thread_Manager.i19
1 files changed, 19 insertions, 0 deletions
diff --git a/ace/Thread_Manager.i b/ace/Thread_Manager.i
index e502817256c..3344c108e73 100644
--- a/ace/Thread_Manager.i
+++ b/ace/Thread_Manager.i
@@ -10,6 +10,13 @@ ACE_Thread_Descriptor::self (void)
ACE_TRACE ("ACE_Thread_Descriptor::self");
return this->thr_id_;
}
+
+ACE_INLINE ACE_Task_Base *
+ACE_Thread_Descriptor::task (void)
+{
+ ACE_TRACE ("ACE_Thread_Descriptor::task");
+ return this->task_;
+}
// Unique kernel-level thread handle.
@@ -84,3 +91,15 @@ ACE_Thread_Manager::thr_self (void)
ACE_TRACE ("ACE_Thread_Manager::thr_self");
return ACE_Thread::self ();
}
+
+ACE_INLINE ACE_Task_Base *
+ACE_Thread_Manager::task (void)
+{
+ ACE_TRACE ("ACE_Thread_Manager::task");
+ ACE_Thread_Descriptor td;
+
+ if (this->thread_descriptor (ACE_Thread::self (), td) == -1)
+ return 0;
+ else
+ return td.task ();
+}