From: Wolfgang Bangerth Date: Tue, 26 May 2020 23:15:43 +0000 (-0600) Subject: Route all variations of Threads::new_task() through one instance. X-Git-Tag: v9.3.0-rc1~1548^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9427f8730239c2dafbaa14e210377e47bd10c06c;p=dealii.git 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. --- 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)); }