mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
fixed race codition between RouterInfo's buffer persist and update
This commit is contained in:
parent
425ef2cfe5
commit
b98b3a87b0
4 changed files with 52 additions and 32 deletions
|
@ -146,7 +146,7 @@ namespace data
|
|||
void Load ();
|
||||
bool LoadRouterInfo (const std::string& path, uint64_t ts);
|
||||
void SaveUpdated ();
|
||||
void PersistRouters (std::list<std::pair<std::string, std::shared_ptr<RouterInfo> > >&& update,
|
||||
void PersistRouters (std::list<std::pair<std::string, std::shared_ptr<RouterInfo::Buffer> > >&& update,
|
||||
std::list<std::string>&& remove);
|
||||
void Run (); // exploratory thread
|
||||
void Explore (int numDestinations);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue