Skip to content

Commit a60794a

Browse files
committed
Fix format
Signed-off-by: Isaev, Ilya <[email protected]>
1 parent b025aed commit a60794a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

test/tbb/test_task.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -728,12 +728,12 @@ struct resubmitting_task : public tbb::detail::d1::task {
728728
static constexpr int max_task_count = 100000;
729729
tbb::task_arena& my_arena;
730730
tbb::task_group_context& my_ctx;
731+
731732
struct task_pool_data {
732-
std::vector<resubmitting_task> task_pool;
733-
std::atomic<int> counter;
733+
std::vector<resubmitting_task> task_pool;
734+
std::atomic<int> counter;
734735

735-
task_pool_data(const std::vector<resubmitting_task>& vec) : task_pool(vec), counter(0)
736-
{}
736+
task_pool_data(const std::vector<resubmitting_task> &vec) : task_pool(vec), counter(0) {}
737737
};
738738

739739
task_pool_data* my_tp_data { nullptr };
@@ -748,11 +748,11 @@ struct resubmitting_task : public tbb::detail::d1::task {
748748
REQUIRE(my_tp_data);
749749
int task_index = my_tp_data->counter++;
750750
if (task_index < max_task_count) {
751-
auto &task = my_tp_data->task_pool[task_index];
752-
task.my_tp_data = my_tp_data;
753-
submit(task, my_arena, my_ctx, true);
751+
auto& new_task = my_tp_data->task_pool[task_index];
752+
new_task.my_tp_data = my_tp_data;
753+
submit(new_task, my_arena, my_ctx, true);
754754
}
755-
return nullptr;
755+
return nullptr;
756756
}
757757

758758
tbb::detail::d1::task* cancel( tbb::detail::d1::execution_data& ) override {
@@ -811,7 +811,7 @@ TEST_CASE("Test with priority inversion") {
811811
initial_submitters[index].my_tp_data = &tp_data;
812812
barrier.wait();
813813
submit(initial_submitters[index], test_arena, test_context, true);
814-
});
814+
});
815815
});
816816

817817
std::vector<std::thread> high_priority_threads;

0 commit comments

Comments
 (0)