Remove "THREADCOUNT" from ThreadPool
Redundant because "SIZE" provides the same value.
This commit is contained in:
parent
e8f5e57772
commit
beb3eae6e2
1 changed files with 1 additions and 3 deletions
|
@ -29,8 +29,6 @@ namespace Internal {
|
|||
template <unsigned int SIZE>
|
||||
class ThreadPool {
|
||||
public:
|
||||
using THREADCOUNT = std::integral_constant<int, SIZE>;
|
||||
|
||||
ThreadPool() : waitCount(0) {
|
||||
isAlive.store(true);
|
||||
if(SIZE >= 2) {
|
||||
|
@ -160,7 +158,7 @@ public:
|
|||
bool isAllThreadsWaiting() {
|
||||
if(SIZE >= 2) {
|
||||
std::lock_guard<std::mutex> lock(waitCountMutex);
|
||||
return waitCount == THREADCOUNT::value;
|
||||
return waitCount == SIZE;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue