From 9427f8730239c2dafbaa14e210377e47bd10c06c Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 26 May 2020 17:15:43 -0600 Subject: [PATCH] Route all variations of Threads::new_task() through one instance. Right now, there are two that are the end points of all overloads. Reduce this to one to make some further clean-ups simpler. --- include/deal.II/base/thread_management.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/deal.II/base/thread_management.h b/include/deal.II/base/thread_management.h index 4546ec0b2a..f892bb03cb 100644 --- a/include/deal.II/base/thread_management.h +++ b/include/deal.II/base/thread_management.h @@ -1459,7 +1459,7 @@ namespace Threads { using return_type = decltype(function_object()); dealii::MultithreadInfo::initialize_multithreading(); - return Task(std::function(function_object)); + return new_task(std::function(function_object)); } -- 2.39.5