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:
@@ -228,7 +228,7 @@ public:
|
||||
reset () override
|
||||
{
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(maxSeqLock);
|
||||
std::lock_guard lock(maxSeqLock);
|
||||
maxSeq = 0;
|
||||
}
|
||||
fullbelow_.reset();
|
||||
@@ -1610,7 +1610,7 @@ ApplicationImp::signalStop()
|
||||
{
|
||||
// Unblock the main thread (which is sitting in run()).
|
||||
//
|
||||
std::lock_guard<std::mutex> lk{mut_};
|
||||
std::lock_guard lk{mut_};
|
||||
isTimeToStop = true;
|
||||
cv_.notify_all();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user