summaryrefslogtreecommitdiff
path: root/ACE/ace/Base_Thread_Adapter.cpp
diff options
context:
space:
mode:
authoriliyan <iliyan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2008-04-04 22:28:48 +0000
committeriliyan <iliyan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2008-04-04 22:28:48 +0000
commitb2a641dbe426a09df50ede495d19834238d3539c (patch)
tree72de94ddc6d6d8a1ba0d5e508f526ef2029e9082 /ACE/ace/Base_Thread_Adapter.cpp
parent64f732c904b2724a297e77b951f2593d308b24a0 (diff)
downloadATCD-b2a641dbe426a09df50ede495d19834238d3539c.tar.gz
ChangeLogTag: Fri Apr 4 21:43:35 UTC 2008 Iliyan Jeliazkov <iliyan@ociweb.com>
Diffstat (limited to 'ACE/ace/Base_Thread_Adapter.cpp')
-rw-r--r--ACE/ace/Base_Thread_Adapter.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/ACE/ace/Base_Thread_Adapter.cpp b/ACE/ace/Base_Thread_Adapter.cpp
index 2ba31a4328e..9c9332c5fe8 100644
--- a/ACE/ace/Base_Thread_Adapter.cpp
+++ b/ACE/ace/Base_Thread_Adapter.cpp
@@ -14,6 +14,8 @@ ACE_RCSID (ace,
# include "ace/OS_NS_Thread.h"
#endif /* ACE_HAS_TSS_EMULATION */
+#include "ace/Service_Config.h"
+
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INIT_LOG_MSG_HOOK ACE_Base_Thread_Adapter::init_log_msg_hook_ = 0;
@@ -36,6 +38,7 @@ ACE_Base_Thread_Adapter::ACE_Base_Thread_Adapter (
, arg_ (arg)
, entry_point_ (entry_point)
, thr_desc_ (td)
+ , ctx_ (ACE_Service_Config::current())
{
ACE_OS_TRACE ("ACE_Base_Thread_Adapter::ACE_Base_Thread_Adapter");
@@ -63,6 +66,11 @@ ACE_Base_Thread_Adapter::inherit_log_msg (void)
(*ACE_Base_Thread_Adapter::inherit_log_msg_hook_)(
this->thr_desc_,
this->log_msg_attributes_);
+
+ // Initialize the proper configuration context for the new thread
+ // Placed here since inherit_log_msg() gets called from any of our
+ // descendants (before self-destructing)
+ ACE_Service_Config::current (this->ctx_);
}
void