refactor: Rename LockGuard to StdLockGuard for consistency with StdMutex

This commit is contained in:
Hennadii Stepanov
2020-05-28 09:42:26 +03:00
parent 79be487420
commit dfb75ae49d
3 changed files with 11 additions and 11 deletions

View File

@@ -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) {