Use RippleMutex instead of boost::mutex

This commit is contained in:
Vinnie Falco
2013-08-22 21:31:22 -07:00
parent c21a53a3ea
commit f14333012b
79 changed files with 798 additions and 721 deletions

View File

@@ -152,6 +152,7 @@ public:
//
: SharedSingleton <Application> (SingletonLifetime::neverDestroyed)
#endif
, mMasterLock (this, "MasterLock", __FILE__, __LINE__)
, m_mainService ("io",
(getConfig ().NODE_SIZE >= 2) ? 2 : 1,
(getConfig ().NODE_SIZE >= 2) ? 1 : 0)
@@ -265,7 +266,7 @@ public:
return mJobQueue;
}
MasterLockType& getMasterLock ()
Application::LockType& getMasterLock ()
{
return mMasterLock;
}
@@ -642,6 +643,8 @@ private:
bool loadOldLedger (const std::string&, bool);
private:
Application::LockType mMasterLock;
IoServiceThread m_mainService;
IoServiceThread m_auxService;
@@ -649,8 +652,6 @@ private:
//boost::asio::io_service mAuxService;
//boost::asio::io_service::work mIOWork;
MasterLockType mMasterLock;
LocalCredentials m_localCredentials;
LedgerMaster mLedgerMaster;
InboundLedgers m_inboundLedgers;