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 140abce commit 2a3f76fCopy full SHA for 2a3f76f
cpp/benchmarks/threadpool/threadpool_benchmark.cpp
@@ -58,10 +58,8 @@ void BM_threadpool_compute(benchmark::State& state)
58
for (auto _ : state) {
59
// Submit a total of "num_compute_tasks" tasks to the thread pool.
60
for (auto i = std::size_t{0}; i < num_compute_tasks; ++i) {
61
- [[maybe_unused]] auto fut = kvikio::defaults::thread_pool().submit_task(
62
- [num_compute_iterations] {
63
- task_compute(num_compute_iterations);
64
- });
+ [[maybe_unused]] auto fut =
+ kvikio::defaults::thread_pool().submit_task([] { task_compute(num_compute_iterations); });
65
}
66
kvikio::defaults::thread_pool().wait();
67
0 commit comments