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

@@ -92,7 +92,7 @@ void InfoSub::onSendEmpty ()
void InfoSub::insertSubAccountInfo (AccountID const& account, bool rt)
{
ScopedLockType sl (mLock);
std::lock_guard sl (mLock);
if (rt)
realTimeSubscriptions_.insert (account);
@@ -102,7 +102,7 @@ void InfoSub::insertSubAccountInfo (AccountID const& account, bool rt)
void InfoSub::deleteSubAccountInfo (AccountID const& account, bool rt)
{
ScopedLockType sl (mLock);
std::lock_guard sl (mLock);
if (rt)
realTimeSubscriptions_.erase (account);