22 void TestTask(
const int ip, std::atomic<int>& counter) { ++counter; }
24 TEST_CASE(
"ParallelExecutor<STD> function case",
"[concurrency]")
28 std::atomic<int> count(0);
29 test_block(num_threads,
TestTask, std::ref(count));
33 TEST_CASE(
"ParallelExecutor<STD> lambda case",
"[concurrency]")
37 std::atomic<int> count(0);
39 num_threads, [](
int id, std::atomic<int>& my_count) { ++my_count; }, std::ref(count));
43 TEST_CASE(
"ParallelExecutor<STD> nested case",
"[concurrency]")
47 std::atomic<int> count(0);
50 [num_threads](
int task_id, std::atomic<int>& my_count) {
52 test_block2(num_threads,
TestTask, std::ref(my_count));
helper functions for EinsplineSetBuilder
Abstraction for running concurrent tasks in parallel by an executor executor workers can be OpenMP th...
TEST_CASE("complex_helper", "[type_traits]")
void TestTask(const int ip, std::atomic< int > &counter)
REQUIRE(std::filesystem::exists(filename))