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:
Howard Hinnant
2015-03-18 12:29:40 -04:00
committed by Tom Ritchford
parent 698fe73608
commit a61ffab3f9
20 changed files with 85 additions and 41 deletions

View File

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