We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b63a6e5 commit 1a130b1Copy full SHA for 1a130b1
include/ThreadPoolBase.hh
@@ -30,7 +30,7 @@ public:
30
n_tasks = (n_tasks >= m_workers.size()) ? n_tasks : m_workers.size();
31
m_tasksRemaining = n_tasks;
32
int chunk = (end - begin) / n_tasks;
33
- for (int i = 0; i < n_tasks; ++i) {
+ for (auto i = 0u; i < n_tasks; ++i) {
34
AddTask([=]{
35
uint32_t threadstart = begin + i*chunk;
36
uint32_t threadstop = (i == n_tasks - 1) ? end : threadstart + chunk;
0 commit comments