diff --git a/src/EC/ThreadPool.hpp b/src/EC/ThreadPool.hpp index b097bff..ac94006 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 constexpr(SIZE >= 2) { @@ -160,7 +158,7 @@ public: bool isAllThreadsWaiting() { if constexpr(SIZE >= 2) { std::lock_guard lock(waitCountMutex); - return waitCount == THREADCOUNT::value; + return waitCount == SIZE; } else { return true; }