diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 2000-05-04 00:10:09 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 2000-05-04 00:10:09 +0000 |
commit | 58cbfeaa3ed3ccb41bab432eb6f54810c0e5b13a (patch) | |
tree | 840c798ea376acd01047e19c353766fe4a52e934 | |
parent | 24738ae68431432d1d261f99488ecdd4ce2eb3ee (diff) | |
download | ATCD-58cbfeaa3ed3ccb41bab432eb6f54810c0e5b13a.tar.gz |
ChangeLogTag:Wed May 3 18:07:16 2000 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | ChangeLogs/ChangeLog-02a | 3 | ||||
-rw-r--r-- | ChangeLogs/ChangeLog-03a | 3 | ||||
-rw-r--r-- | ace/Log_Msg.cpp | 9 | ||||
-rw-r--r-- | ace/Log_Msg.h | 5 |
5 files changed, 23 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 6e4aaac8970..82d3259c3a4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ Wed May 3 18:07:16 2000 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu> + * ace/Log_Msg: Added the new log_priority_enabled() method. Thanks + to Ossama for reporting this ;-). + * include/makeinclude/platform_sunos5_sunc++.GNU (CC_VERSION): The keywords to check if the version if greater than 5 is "C++" on Solaris, not "Compilers." Thanks to Rick Weisner diff --git a/ChangeLogs/ChangeLog-02a b/ChangeLogs/ChangeLog-02a index 6e4aaac8970..82d3259c3a4 100644 --- a/ChangeLogs/ChangeLog-02a +++ b/ChangeLogs/ChangeLog-02a @@ -1,5 +1,8 @@ Wed May 3 18:07:16 2000 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu> + * ace/Log_Msg: Added the new log_priority_enabled() method. Thanks + to Ossama for reporting this ;-). + * include/makeinclude/platform_sunos5_sunc++.GNU (CC_VERSION): The keywords to check if the version if greater than 5 is "C++" on Solaris, not "Compilers." Thanks to Rick Weisner diff --git a/ChangeLogs/ChangeLog-03a b/ChangeLogs/ChangeLog-03a index 6e4aaac8970..82d3259c3a4 100644 --- a/ChangeLogs/ChangeLog-03a +++ b/ChangeLogs/ChangeLog-03a @@ -1,5 +1,8 @@ Wed May 3 18:07:16 2000 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu> + * ace/Log_Msg: Added the new log_priority_enabled() method. Thanks + to Ossama for reporting this ;-). + * include/makeinclude/platform_sunos5_sunc++.GNU (CC_VERSION): The keywords to check if the version if greater than 5 is "C++" on Solaris, not "Compilers." Thanks to Rick Weisner diff --git a/ace/Log_Msg.cpp b/ace/Log_Msg.cpp index ba77b68f760..0ae95ccd53f 100644 --- a/ace/Log_Msg.cpp +++ b/ace/Log_Msg.cpp @@ -1748,3 +1748,12 @@ ACE_Log_Msg::getpid (void) const ACE_Log_Msg_Callback::~ACE_Log_Msg_Callback (void) { } + +ACE_Log_Msg::log_priority_enabled (ACE_Log_Priority log_priority, + const ASYS_TCHAR *, + ...) +{ + return ACE_BIT_ENABLED (this->priority_mask_ | + ACE_Log_Msg::process_priority_mask_, + log_priority); +} diff --git a/ace/Log_Msg.h b/ace/Log_Msg.h index e41cc7d46b9..8a2722b3c3f 100644 --- a/ace/Log_Msg.h +++ b/ace/Log_Msg.h @@ -363,6 +363,11 @@ public: int log_priority_enabled (ACE_Log_Priority log_priority); // Return true if the requested priority is enabled. + int log_priority_enabled (ACE_Log_Priority log_priority, + const ASYS_TCHAR *, + ...); + // Return true if the requested priority is enabled. + pid_t getpid (void) const; // Optimize reading of the pid (avoids a system call if the value is // cached...). |