mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-24 21:15:58 +00:00
Use ScopedLock RAII for some Application members
Conflicts: src/cpp/ripple/Application.h
This commit is contained in:
@@ -398,6 +398,10 @@ void Application::sweep()
|
||||
theApp->stop();
|
||||
}
|
||||
|
||||
// VFALCO: NOTE, Does the order of calls matter?
|
||||
// VFALCO: TODO, fix the dependency inversion using an observer,
|
||||
// have listeners register for "onSweep ()" notification.
|
||||
//
|
||||
mMasterTransaction.sweep();
|
||||
mHashedObjectStore.sweep();
|
||||
mLedgerMaster.sweep();
|
||||
@@ -405,9 +409,10 @@ void Application::sweep()
|
||||
mValidations->sweep();
|
||||
getMasterLedgerAcquire().sweep();
|
||||
mSLECache.sweep();
|
||||
AcceptedLedger::sweep();
|
||||
SHAMap::sweep();
|
||||
AcceptedLedger::sweep(); // VFALCO: NOTE, AcceptedLedger is/has a singleton?
|
||||
SHAMap::sweep(); // VFALCO: NOTE, SHAMap is/has a singleton?
|
||||
mNetOps.sweepFetchPack();
|
||||
// VFALCO: NOTE, does the call to sweep() happen on another thread?
|
||||
mSweepTimer.expires_from_now(boost::posix_time::seconds(theConfig.getSize(siSweepInterval)));
|
||||
mSweepTimer.async_wait(boost::bind(&Application::sweep, this));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user