mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
Cleanup thread creation.
This commit is contained in:
@@ -1167,9 +1167,8 @@ void Ledger::pendSave(bool fromConsensus)
|
||||
if (!fromConsensus && !theApp->isNewFlag(getHash(), SF_SAVED))
|
||||
return;
|
||||
|
||||
boost::thread thread(boost::bind(&Ledger::saveAcceptedLedger, shared_from_this(),
|
||||
fromConsensus, theApp->getJobQueue().getLoadEvent(jtDISK)));
|
||||
thread.detach();
|
||||
boost::thread(boost::bind(&Ledger::saveAcceptedLedger, shared_from_this(),
|
||||
fromConsensus, theApp->getJobQueue().getLoadEvent(jtDISK))).detach();
|
||||
|
||||
boost::recursive_mutex::scoped_lock sl(sPendingSaveLock);
|
||||
++sPendingSaves;
|
||||
|
||||
Reference in New Issue
Block a user