Remove zero-ing of atomic_uint in ThreadPool

Setting the current "stacks" atomic_uint to zero is unnecessary once all
the threads have finished execution.
This commit is contained in:
Stephen Seo 2022-06-16 12:41:08 +09:00
parent a879e0ef8c
commit c245b438a7

View file

@ -125,9 +125,6 @@ class ThreadPool {
} }
std::get<0>(threadStack->back())->detach(); std::get<0>(threadStack->back())->detach();
threadStack->pop_back(); threadStack->pop_back();
if (threadStack->empty()) {
initCount->store(0);
}
break; break;
} }
} }