]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Edit the description of a test.
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 30 Oct 2023 17:40:25 +0000 (11:40 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 31 Oct 2023 00:08:14 +0000 (18:08 -0600)
tests/multithreading/task_14.cc

index 5623a023168a08578704e491743399dd27d70c87..95c5c7428b9176a09caeb3c956d5a038fd4d5e22 100644 (file)
@@ -37,7 +37,10 @@ main()
 {
   initlog();
 
-  // Create a bunch of tasks, and put them into a TaskGroup
+  // Create a bunch of tasks, and put them into a TaskGroup. The test
+  // also checks that the call to `new_task()` needs to copy the
+  // passed in value for `i` rather than take a reference to it,
+  // because it would otherwise use outdated values.
   Threads::TaskGroup<int> tg;
   for (unsigned int i = 0; i < 10; ++i)
     tg += Threads::new_task(&test, i);

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.