mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Use class template argument deduction for locks
This commit is contained in:
@@ -284,7 +284,7 @@ private:
|
||||
auto m = std::make_shared<msg>(
|
||||
std::move(jv));
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(m_);
|
||||
std::lock_guard lock(m_);
|
||||
msgs_.push_front(m);
|
||||
cv_.notify_all();
|
||||
}
|
||||
@@ -297,7 +297,7 @@ private:
|
||||
void
|
||||
on_read_done()
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(m0_);
|
||||
std::lock_guard lock(m0_);
|
||||
b0_ = true;
|
||||
cv0_.notify_all();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user