moved save/delete profile disk oprations to separate threads

This commit is contained in:
orignal 2024-04-27 16:00:43 -04:00
parent 648a884a18
commit 733a4a2869
4 changed files with 72 additions and 27 deletions

View file

@ -15,6 +15,7 @@
#include <string>
#include <thread>
#include <mutex>
#include <future>
#include "Base.h"
#include "Gzip.h"
@ -177,6 +178,7 @@ namespace data
NetDbRequests m_Requests;
bool m_PersistProfiles;
std::future<void> m_SavingProfiles, m_DeletingProfiles;
/** router info we are bootstrapping from or nullptr if we are not currently doing that*/
std::shared_ptr<RouterInfo> m_FloodfillBootstrap;