summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-04-16 04:22:37 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-04-16 04:22:37 +0000
commitb1e3a2467b37453919fa13bf4381fdec55ea78e1 (patch)
treea3b556d08bbd9dc89554c877d82270aff8580f1a
parent256130341836dd43123453592e644cd9c16e9031 (diff)
downloadATCD-b1e3a2467b37453919fa13bf4381fdec55ea78e1.tar.gz
Don't delete ACE_Thread_Exit from ACE_Thread_Manager::exit. It will be
called when TSS'es are getting cleaned up.
-rw-r--r--ace/Thread_Manager.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/ace/Thread_Manager.cpp b/ace/Thread_Manager.cpp
index 7c886cd3833..3d1c2b3bb78 100644
--- a/ace/Thread_Manager.cpp
+++ b/ace/Thread_Manager.cpp
@@ -1271,6 +1271,10 @@ ACE_Thread_Manager::exit (void *status, int do_thr_exit)
if (do_thr_exit)
{
+#if 0
+ // @@ This callback is now taken care of by TSS_Cleanup. Do we
+ // need it anymore?
+
// On Win32, if we really wants to exit from a thread, we must
// first clean up the thread specific storage. By doing so,
// ACE_Thread_Manager::exit will be called again with
@@ -1278,6 +1282,7 @@ ACE_Thread_Manager::exit (void *status, int do_thr_exit)
// exiting the thread.) After the following call returns, we
// are safe to exit this thread.
delete ACE_Thread_Exit::instance ();
+#endif /* 0 */
ACE_Thread::exit (status);
}
#endif /* ACE_WIN32 */