You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rm...@apache.org on 2021/09/10 13:51:23 UTC
[logging-log4cxx] branch LOGCXX-534 created (now ec2d92c)
This is an automated email from the ASF dual-hosted git repository.
rmiddleton pushed a change to branch LOGCXX-534
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git.
at ec2d92c LOGCXX-534 properly lock the mutex
This branch includes the following new commits:
new ec2d92c LOGCXX-534 properly lock the mutex
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[logging-log4cxx] 01/01: LOGCXX-534 properly lock the mutex
Posted by rm...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rmiddleton pushed a commit to branch LOGCXX-534
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git
commit ec2d92c4180b9a2ecbc04a51766e8f889b4baaf3
Author: Robert Middleton <ro...@rm5248.com>
AuthorDate: Fri Sep 10 09:50:59 2021 -0400
LOGCXX-534 properly lock the mutex
---
src/main/cpp/appenderskeleton.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/cpp/appenderskeleton.cpp b/src/main/cpp/appenderskeleton.cpp
index 1fc2c96..6df2551 100644
--- a/src/main/cpp/appenderskeleton.cpp
+++ b/src/main/cpp/appenderskeleton.cpp
@@ -96,7 +96,7 @@ bool AppenderSkeleton::isAsSevereAsThreshold(const LevelPtr& level) const
void AppenderSkeleton::doAppend(const spi::LoggingEventPtr& event, Pool& pool1)
{
- log4cxx::shared_lock<log4cxx::shared_mutex> lock(mutex);
+ std::unique_lock<log4cxx::shared_mutex> lock(mutex);
doAppendImpl(event, pool1);
}