diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2020-05-28 09:42:26 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2020-05-28 09:54:24 +0300 |
commit | dfb75ae49d4d617ec02188a6f449e8b8015ad467 (patch) | |
tree | f891be07f0a9a617fc086317e24b32fe03b1b13b /src/logging.cpp | |
parent | 79be4874209f71ba6428a80c40c9f028ac936c41 (diff) |
refactor: Rename LockGuard to StdLockGuard for consistency with StdMutex
Diffstat (limited to 'src/logging.cpp')
-rw-r--r-- | src/logging.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/logging.cpp b/src/logging.cpp index 41c6f5c932..fe58ae9e73 100644 --- a/src/logging.cpp +++ b/src/logging.cpp @@ -41,7 +41,7 @@ static int FileWriteStr(const std::string &str, FILE *fp) bool BCLog::Logger::StartLogging() { - LockGuard scoped_lock(m_cs); + StdLockGuard scoped_lock(m_cs); assert(m_buffering); assert(m_fileout == nullptr); @@ -80,7 +80,7 @@ bool BCLog::Logger::StartLogging() void BCLog::Logger::DisconnectTestLogger() { - LockGuard scoped_lock(m_cs); + StdLockGuard scoped_lock(m_cs); m_buffering = true; if (m_fileout != nullptr) fclose(m_fileout); m_fileout = nullptr; @@ -246,7 +246,7 @@ namespace BCLog { void BCLog::Logger::LogPrintStr(const std::string& str) { - LockGuard scoped_lock(m_cs); + StdLockGuard scoped_lock(m_cs); std::string str_prefixed = LogEscapeMessage(str); if (m_log_threadnames && m_started_new_line) { |