mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Use class template argument deduction for locks
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user