mirror of
https://github.com/monero-project/monero.git
synced 2025-08-13 13:15:34 -04:00
Second thread pool for IO
This commit is contained in:
parent
c9cfa25183
commit
28f25c0dbc
8 changed files with 17 additions and 13 deletions
|
@ -520,7 +520,7 @@ bool load_txt_records_from_dns(std::vector<std::string> &good_records, const std
|
|||
|
||||
// send all requests in parallel
|
||||
std::deque<bool> avail(dns_urls.size(), false), valid(dns_urls.size(), false);
|
||||
tools::threadpool& tpool = tools::threadpool::getInstance();
|
||||
tools::threadpool& tpool = tools::threadpool::getInstanceForIO();
|
||||
tools::threadpool::waiter waiter(tpool);
|
||||
for (size_t n = 0; n < dns_urls.size(); ++n)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue