From: Daniel Arndt Date: Mon, 20 May 2024 22:10:21 +0000 (-0400) Subject: Make multithreading/task_17 more stable X-Git-Tag: v9.6.0-rc1~253^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8387ae3321313f1e010b74863a63344e2e55c2d;p=dealii.git Make multithreading/task_17 more stable --- diff --git a/tests/multithreading/task_17.cc b/tests/multithreading/task_17.cc index c23dd0b8c0..d9d24969a6 100644 --- a/tests/multithreading/task_17.cc +++ b/tests/multithreading/task_17.cc @@ -41,7 +41,6 @@ middle() { deallog << " Starting task in the middle" << std::endl; auto t = Threads::new_task([]() { bottom(); }); - deallog << " Waiting for sub-task in the middle" << std::endl; t.join(); deallog << " Ending task in the middle" << std::endl; } @@ -51,7 +50,6 @@ top() { deallog << " Starting task at the top" << std::endl; auto t = Threads::new_task([]() { middle(); }); - deallog << " Waiting for sub-task at the top" << std::endl; t.join(); deallog << " Ending task at the top" << std::endl; } @@ -66,7 +64,6 @@ main() deallog << "Starting task in main()" << std::endl; auto t = Threads::new_task([]() { top(); }); - deallog << "Waiting for task in main" << std::endl; t.join(); deallog << "Done in main" << std::endl; } diff --git a/tests/multithreading/task_17.output b/tests/multithreading/task_17.output index 2155c5bc5b..73941b7dd3 100644 --- a/tests/multithreading/task_17.output +++ b/tests/multithreading/task_17.output @@ -1,10 +1,7 @@ DEAL::Starting task in main() -DEAL::Waiting for task in main DEAL:: Starting task at the top -DEAL:: Waiting for sub-task at the top DEAL:: Starting task in the middle -DEAL:: Waiting for sub-task in the middle DEAL:: Starting task at the bottom DEAL:: ... ... ... DEAL:: Ending task at the bottom