From c245b438a7ed203b7a28d237b3ae73b3d94d6790 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Thu, 16 Jun 2022 12:41:08 +0900 Subject: [PATCH] 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. --- src/EC/ThreadPool.hpp | 3 --- 1 file changed, 3 deletions(-) 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; } }