From: Stephen Seo Date: Tue, 7 Sep 2021 11:15:53 +0000 (+0900) Subject: Remove "THREADCOUNT" from ThreadPool X-Git-Tag: 1.0~29 X-Git-Url: https://git.seodisparate.com/stephenseo/static/search/searchdata.js?a=commitdiff_plain;h=beb3eae6e23461ee63338bcabff22c9c626fc948;p=EntityComponentMetaSystem Remove "THREADCOUNT" from ThreadPool Redundant because "SIZE" provides the same value. --- 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; }