]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Route all variations of Threads::new_task() through one instance. 10372/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 26 May 2020 23:15:43 +0000 (17:15 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 26 May 2020 23:15:43 +0000 (17:15 -0600)
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

index 4546ec0b2aa5df438f635295be8a819c1a9f39f8..f892bb03cbf682d3ae9eee8e7125334df1a10a24 100644 (file)
@@ -1459,7 +1459,7 @@ namespace Threads
   {
     using return_type = decltype(function_object());
     dealii::MultithreadInfo::initialize_multithreading();
-    return Task<return_type>(std::function<return_type()>(function_object));
+    return new_task(std::function<return_type()>(function_object));
   }
 
 

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.