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.
This commit is contained in:
parent
a879e0ef8c
commit
c245b438a7
1 changed files with 0 additions and 3 deletions
|
@ -125,9 +125,6 @@ class ThreadPool {
|
|||
}
|
||||
std::get<0>(threadStack->back())->detach();
|
||||
threadStack->pop_back();
|
||||
if (threadStack->empty()) {
|
||||
initCount->store(0);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue