summaryrefslogtreecommitdiff
path: root/ace/Log_Msg.cpp
diff options
context:
space:
mode:
authornobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-07-08 03:00:48 +0000
committernobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-07-08 03:00:48 +0000
commitc3c5c65990e08709a59a3a2c1d31161997e2a750 (patch)
treeccc2ba6a31b98bdb3ce1c19bc29dfcb540b9f078 /ace/Log_Msg.cpp
parent9d06140d8330d467a08764b399682a67808b7419 (diff)
downloadATCD-ami_phase3_end.tar.gz
This commit was manufactured by cvs2svn to create tagami_phase3_end
'ami_phase3_end'.
Diffstat (limited to 'ace/Log_Msg.cpp')
-rw-r--r--ace/Log_Msg.cpp18
1 files changed, 4 insertions, 14 deletions
diff --git a/ace/Log_Msg.cpp b/ace/Log_Msg.cpp
index 70cf92c3d42..7114ce06675 100644
--- a/ace/Log_Msg.cpp
+++ b/ace/Log_Msg.cpp
@@ -96,9 +96,7 @@ ACE_Log_Msg_Manager::get_lock (void)
{
ACE_NO_HEAP_CHECK;
- ACE_NEW_RETURN_I (ACE_Log_Msg_Manager::lock_,
- ACE_Recursive_Thread_Mutex,
- 0);
+ ACE_NEW_RETURN_I (ACE_Log_Msg_Manager::lock_, ACE_Recursive_Thread_Mutex, 0);
// Allocate the ACE_Log_Msg IPC instance.
ACE_NEW_RETURN (ACE_Log_Msg_message_queue, ACE_LOG_MSG_IPC_STREAM, 0);
@@ -214,9 +212,7 @@ ACE_Log_Msg::instance (void)
{
ACE_NO_HEAP_CHECK;
- ACE_NEW_RETURN_I (tss_log_msg,
- ACE_Log_Msg,
- 0);
+ ACE_NEW_RETURN_I (tss_log_msg, ACE_Log_Msg, 0);
// Store the dynamically allocated pointer in thread-specific
// storage. It gets deleted via the ACE_TSS_cleanup function
// when the thread terminates.
@@ -236,9 +232,8 @@ ACE_Log_Msg::instance (void)
// ACE_Log_Msg_Manager::get_lock() to initialize the message queue,
// so instead we do it here.
if (ACE_Log_Msg_message_queue == 0)
- ACE_NEW_RETURN (ACE_Log_Msg_message_queue,
- ACE_LOG_MSG_IPC_STREAM,
- 0);
+ ACE_NEW_RETURN (ACE_Log_Msg_message_queue, ACE_LOG_MSG_IPC_STREAM, 0);
+
// Singleton implementation.
static ACE_Cleanup_Adapter<ACE_Log_Msg> *log_msg = 0;
if (log_msg == 0)
@@ -773,10 +768,6 @@ ACE_Log_Msg::log (const ASYS_TCHAR *format_str,
#if defined (ACE_WIN32)
LPTSTR lpMsgBuf = 0;
- // PharLap can't do FormatMessage, so try for socket
- // error.
-# if !defined (ACE_HAS_PHARLAP)
-
::FormatMessage (FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
NULL,
errno,
@@ -784,7 +775,6 @@ ACE_Log_Msg::log (const ASYS_TCHAR *format_str,
(LPTSTR) &lpMsgBuf,
0,
NULL);
-# endif /* ACE_HAS_PHARLAP */
// If we don't get a valid response from
// <FormatMessage>, we'll assume this is a