mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Remove unnecessary allocation/deallocation from masterLock
* Add make_lock. * Rename Application::LockType to Application::MutexType: * Rename getMasterLock to getMasterMutex. * Use getMasterMutex and make_lock. * Remove unused code.
This commit is contained in:
committed by
Tom Ritchford
parent
698fe73608
commit
a61ffab3f9
@@ -248,7 +248,7 @@ private:
|
||||
public:
|
||||
Logs& m_logs;
|
||||
beast::Journal m_journal;
|
||||
Application::LockType m_masterMutex;
|
||||
Application::MutexType m_masterMutex;
|
||||
|
||||
// Required by the SHAMapStore
|
||||
TransactionMaster m_txMaster;
|
||||
@@ -524,7 +524,7 @@ public:
|
||||
return *m_nodeStore;
|
||||
}
|
||||
|
||||
Application::LockType& getMasterLock ()
|
||||
Application::MutexType& getMasterMutex ()
|
||||
{
|
||||
return m_masterMutex;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user