From: Stephen Seo Date: Thu, 16 Jun 2022 03:41:08 +0000 (+0900) Subject: Remove zero-ing of atomic_uint in ThreadPool X-Git-Tag: 1.0~13^2~4 X-Git-Url: https://git.seodisparate.com/stephenseo/static/search/searchdata.js?a=commitdiff_plain;h=c245b438a7ed203b7a28d237b3ae73b3d94d6790;p=EntityComponentMetaSystem 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. --- diff --git a/src/EC/ThreadPool.hpp b/src/EC/ThreadPool.hpp index b85c698..c57095a 100644 --- a/src/EC/ThreadPool.hpp +++ b/src/EC/ThreadPool.hpp @@ -125,9 +125,6 @@ class ThreadPool { } std::get<0>(threadStack->back())->detach(); threadStack->pop_back(); - if (threadStack->empty()) { - initCount->store(0); - } break; } }