From beb3eae6e23461ee63338bcabff22c9c626fc948 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Tue, 7 Sep 2021 20:15:53 +0900 Subject: [PATCH] Remove "THREADCOUNT" from ThreadPool Redundant because "SIZE" provides the same value. --- src/EC/ThreadPool.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/EC/ThreadPool.hpp b/src/EC/ThreadPool.hpp index 3580b5e..22da28e 100644 --- a/src/EC/ThreadPool.hpp +++ b/src/EC/ThreadPool.hpp @@ -29,8 +29,6 @@ namespace Internal { template class ThreadPool { public: - using THREADCOUNT = std::integral_constant; - ThreadPool() : waitCount(0) { isAlive.store(true); if(SIZE >= 2) { @@ -160,7 +158,7 @@ public: bool isAllThreadsWaiting() { if(SIZE >= 2) { std::lock_guard lock(waitCountMutex); - return waitCount == THREADCOUNT::value; + return waitCount == SIZE; } else { return true; }