aboutsummaryrefslogtreecommitdiff
path: root/src/logging.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-05-28 09:42:26 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-05-28 09:54:24 +0300
commitdfb75ae49d4d617ec02188a6f449e8b8015ad467 (patch)
treef891be07f0a9a617fc086317e24b32fe03b1b13b /src/logging.h
parent79be4874209f71ba6428a80c40c9f028ac936c41 (diff)
refactor: Rename LockGuard to StdLockGuard for consistency with StdMutex
Diffstat (limited to 'src/logging.h')
-rw-r--r--src/logging.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/logging.h b/src/logging.h
index 2bd8f2683c..7e646ef67a 100644
--- a/src/logging.h
+++ b/src/logging.h
@@ -100,14 +100,14 @@ namespace BCLog {
/** Returns whether logs will be written to any output */
bool Enabled() const
{
- LockGuard scoped_lock(m_cs);
+ StdLockGuard scoped_lock(m_cs);
return m_buffering || m_print_to_console || m_print_to_file || !m_print_callbacks.empty();
}
/** Connect a slot to the print signal and return the connection */
std::list<std::function<void(const std::string&)>>::iterator PushBackCallback(std::function<void(const std::string&)> fun)
{
- LockGuard scoped_lock(m_cs);
+ StdLockGuard scoped_lock(m_cs);
m_print_callbacks.push_back(std::move(fun));
return --m_print_callbacks.end();
}
@@ -115,7 +115,7 @@ namespace BCLog {
/** Delete a connection */
void DeleteCallback(std::list<std::function<void(const std::string&)>>::iterator it)
{
- LockGuard scoped_lock(m_cs);
+ StdLockGuard scoped_lock(m_cs);
m_print_callbacks.erase(it);
}