From 979bd39e5d568edbe1ba5e28e1735214bb764513 Mon Sep 17 00:00:00 2001 From: David Wells Date: Sun, 28 May 2017 13:35:17 -0400 Subject: [PATCH] Fix tests/base/task_09.cc. The current implementation of the Task class will call join() on the created thread in its destructor. Hence, the tasks in the loop run in sequence instead of in parallel since they immediately go out of scope after each loop iteration, which is not the point of the test. --- tests/base/task_09.cc | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tests/base/task_09.cc b/tests/base/task_09.cc index d764518c94..db2b79931a 100644 --- a/tests/base/task_09.cc +++ b/tests/base/task_09.cc @@ -65,8 +65,17 @@ int main() deallog.attach(logfile); deallog.threshold_double(1.e-10); - for (unsigned int i=0; i> tasks(n_tasks); + for (std::size_t task_n=0; task_n