Skip to content

Commit 2a3f76f

Browse files
Update
1 parent 140abce commit 2a3f76f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cpp/benchmarks/threadpool/threadpool_benchmark.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,8 @@ void BM_threadpool_compute(benchmark::State& state)
5858
for (auto _ : state) {
5959
// Submit a total of "num_compute_tasks" tasks to the thread pool.
6060
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-
});
61+
[[maybe_unused]] auto fut =
62+
kvikio::defaults::thread_pool().submit_task([] { task_compute(num_compute_iterations); });
6563
}
6664
kvikio::defaults::thread_pool().wait();
6765
}

0 commit comments

Comments
 (0)