1
0
mirror of https://github.com/google/benchmark.git synced 2025-04-17 23:12:30 +08:00

fix incorrect indexing

This commit is contained in:
Eric Fiselier 2015-02-18 17:15:12 -05:00
parent e77d36c95d
commit e35a22d9fc

View File

@ -564,7 +564,7 @@ void RunBenchmark(const benchmark::Benchmark::Instance& b,
thread.join();
}
for (std::size_t ti = 0; ti < pool.size(); ++ti) {
pool[i] = std::thread(&RunInThread, &b, iters, ti, &total);
pool[ti] = std::thread(&RunInThread, &b, iters, ti, &total);
}
} else {
// Run directly in this thread