Skip to content

Commit

Permalink
Make multithreading/task_17 more stable
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed May 20, 2024
1 parent 613a5db commit a8387ae
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions tests/multithreading/task_17.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand All @@ -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;
}
3 changes: 0 additions & 3 deletions tests/multithreading/task_17.output
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit a8387ae

Please sign in to comment.