summaryrefslogtreecommitdiff
path: root/ace/Log_Msg.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-09-20 22:32:07 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-09-20 22:32:07 +0000
commit2a15fab727322c3d931f23cd426796a5eb04c738 (patch)
treedfedd325947bec8380259bf875c36a9f61a4a574 /ace/Log_Msg.cpp
parent03174883af0d1eff519fcd2eae8ea878e91b4000 (diff)
downloadATCD-2a15fab727322c3d931f23cd426796a5eb04c738.tar.gz
revised ACE_Object_Manager interface for preallocated objects
Diffstat (limited to 'ace/Log_Msg.cpp')
-rw-r--r--ace/Log_Msg.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/ace/Log_Msg.cpp b/ace/Log_Msg.cpp
index d453d78a486..3b462214e68 100644
--- a/ace/Log_Msg.cpp
+++ b/ace/Log_Msg.cpp
@@ -1,4 +1,3 @@
-// Log_Msg.cpp
// $Id$
#define ACE_BUILD_DLL
@@ -177,10 +176,9 @@ ACE_Log_Msg::instance (void)
if (ACE_Log_Msg_key_created_ == 0)
{
- static ACE_Thread_Mutex *lock =
- ACE_Managed_Object<ACE_Thread_Mutex>::get_object
+ ACE_Thread_Mutex *lock =
+ ACE_Managed_Object<ACE_Thread_Mutex>::get_preallocated_object
(ACE_Object_Manager::ACE_LOG_MSG_INSTANCE_LOCK);
- if (lock == 0) return 0;
ACE_GUARD_RETURN (ACE_Thread_Mutex, ace_mon, *lock, 0);