From 79be4874209f71ba6428a80c40c9f028ac936c41 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Thu, 28 May 2020 09:32:21 +0300 Subject: Add thread safety annotated wrapper for std::mutex Co-authored-by: Anthony Towns --- src/logging.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/logging.h') diff --git a/src/logging.h b/src/logging.h index c55f581916..2bd8f2683c 100644 --- a/src/logging.h +++ b/src/logging.h @@ -62,7 +62,7 @@ namespace BCLog { class Logger { private: - mutable std::mutex m_cs; // Can not use Mutex from sync.h because in debug mode it would cause a deadlock when a potential deadlock was detected + mutable StdMutex m_cs; // Can not use Mutex from sync.h because in debug mode it would cause a deadlock when a potential deadlock was detected FILE* m_fileout GUARDED_BY(m_cs) = nullptr; std::list m_msgs_before_open GUARDED_BY(m_cs); -- cgit v1.2.3