diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-03-18 21:54:26 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-03-18 21:54:26 +0000 |
commit | 988633893c2ef3ae893007e78c99b51cc61dab0b (patch) | |
tree | fc72354089ebd55a38ef207fc75434c581efe46b /ace | |
parent | aaee8c2db77413d6b3f669d5d6d195f00e5a757f (diff) | |
download | ATCD-988633893c2ef3ae893007e78c99b51cc61dab0b.tar.gz |
Grab the lock before updating instance_count_.
Diffstat (limited to 'ace')
-rw-r--r-- | ace/Log_Msg.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ace/Log_Msg.cpp b/ace/Log_Msg.cpp index 2ea87758d17..32ffc156c33 100644 --- a/ace/Log_Msg.cpp +++ b/ace/Log_Msg.cpp @@ -388,6 +388,8 @@ ACE_Log_Msg::ACE_Log_Msg (void) { // ACE_TRACE ("ACE_Log_Msg::ACE_Log_Msg"); + ACE_MT (ACE_GUARD (ACE_Thread_Mutex, ace_mon, + *ACE_Log_Msg_Manager::get_lock ())); ++instance_count_; } |