aboutsummaryrefslogtreecommitdiff
path: root/src/logging.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-05-28 09:32:21 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-05-28 09:54:09 +0300
commit79be4874209f71ba6428a80c40c9f028ac936c41 (patch)
tree67705aa6de8960a452eaa2a4ecf3b44d5b7b2a4c /src/logging.h
parent55b4c65bd1d829e799db7fe75fab88691830de43 (diff)
downloadbitcoin-79be4874209f71ba6428a80c40c9f028ac936c41.tar.xz
Add thread safety annotated wrapper for std::mutex
Co-authored-by: Anthony Towns <aj@erisian.com.au>
Diffstat (limited to 'src/logging.h')
-rw-r--r--src/logging.h2
1 files changed, 1 insertions, 1 deletions
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<std::string> m_msgs_before_open GUARDED_BY(m_cs);