Use class template argument deduction for locks

This commit is contained in:
seelabs
2019-08-06 14:16:01 -07:00
parent 4076b6d92e
commit 5d1728cc96
104 changed files with 563 additions and 635 deletions

View File

@@ -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();
}