From d9b9f0077f957de9db97d0cd91d7f339b40614fd Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 30 Oct 2023 11:40:25 -0600 Subject: [PATCH] Edit the description of a test. --- tests/multithreading/task_14.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/multithreading/task_14.cc b/tests/multithreading/task_14.cc index 5623a02316..95c5c7428b 100644 --- a/tests/multithreading/task_14.cc +++ b/tests/multithreading/task_14.cc @@ -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 tg; for (unsigned int i = 0; i < 10; ++i) tg += Threads::new_task(&test, i); -- 2.39.5