mirror of
https://github.com/monero-project/monero.git
synced 2025-08-23 05:45:07 -04:00
Second thread pool for IO
This commit is contained in:
parent
7cbae6ca98
commit
6adf03cdc5
8 changed files with 17 additions and 13 deletions
|
@ -521,7 +521,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