summaryrefslogtreecommitdiff
path: root/ace/Thread_Manager.h
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-08-29 06:17:26 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-08-29 06:17:26 +0000
commit39e383a60f5068ee4315a727e7ec6dd3f512030f (patch)
tree7d32454708aef5d15a16bf6bb1dacc71eb36e675 /ace/Thread_Manager.h
parent21bc321ef279f6cb024b9410706ca3b7911d8a82 (diff)
downloadATCD-39e383a60f5068ee4315a727e7ec6dd3f512030f.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Thread_Manager.h')
-rw-r--r--ace/Thread_Manager.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/ace/Thread_Manager.h b/ace/Thread_Manager.h
index ae7670c91b5..d28076b8275 100644
--- a/ace/Thread_Manager.h
+++ b/ace/Thread_Manager.h
@@ -389,11 +389,21 @@ private:
// Must delete the <thr_mgr_> if non-0.
};
-
class ACE_Export ACE_Thread_Control
// = TITLE
// Used to keep track of a thread's activities within its entry
// point function.
+ //
+ // = DESCRIPTION
+ // A <ACE_Thread_Manager> uses this class to ensure that threads
+ // it spawns automatically register and unregister themselves
+ // with it.
+ //
+ // This class can be stored in thread-specific storage using the
+ // <ACE_TSS> wrapper. When a thread exits the
+ // <ACE_TSS::cleanup> function deletes this object, thereby
+ // ensuring that it gets removed from its associated
+ // <ACE_Thread_Manager>.
{
public:
ACE_Thread_Control (ACE_Thread_Manager *tm = 0,
@@ -438,6 +448,11 @@ private:
void *status_;
// Keeps track of the exit status for the thread.
+
+#if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0)
+ static ACE_Thread_Mutex ace_thread_lock_;
+ // Lock the creation of the Singleton.
+#endif /* defined (ACE_MT_SAFE) */
};
#if defined (__ACE_INLINE__)