]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make multithreading/task_17 more stable 17048/head
authorDaniel Arndt <arndtd@ornl.gov>
Mon, 20 May 2024 22:10:21 +0000 (18:10 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Mon, 20 May 2024 22:10:21 +0000 (18:10 -0400)
tests/multithreading/task_17.cc
tests/multithreading/task_17.output

index c23dd0b8c03d6e10994f064f4f8221cae322ec53..d9d24969a60fb931e02214a2f893ae43c112965c 100644 (file)
@@ -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;
 }
index 2155c5bc5bf846e4651020dea292c5b78dd3bedd..73941b7dd3e39ce561ffe149a6afc4d8ce86128c 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.