API: use unique temp file names

This commit is contained in:
SChernykh
2022-08-25 09:52:58 +02:00
parent cc2abe3c30
commit dc4b88d08e
2 changed files with 12 additions and 9 deletions

View File

@@ -50,6 +50,7 @@ private:
int fd;
std::string name;
std::string tmp_name;
std::vector<char> buf;
};
@@ -87,6 +88,8 @@ private:
unordered_map<std::string, std::vector<char>> m_dumpData;
uv_async_t m_dumpToFileAsync;
uint64_t m_counter;
};
} // namespace p2pool