Do not allow more threads than max_threads.
This commit is contained in:
parent
b3f392e110
commit
65b46ca846
|
@ -197,7 +197,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
for (const auto &filepath : input_files)
|
||||
{
|
||||
if (futurepool.size() >= max_threads)
|
||||
while (futurepool.size() >= max_threads)
|
||||
{
|
||||
futures_cleanup();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user