mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
refactor: Rename LockGuard to StdLockGuard for consistency with StdMutex
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user