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:
parent
e77d36c95d
commit
e35a22d9fc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user