]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Minor cleanups in thread_management.h. 12938/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 12 Nov 2021 18:04:33 +0000 (11:04 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sat, 13 Nov 2021 01:04:53 +0000 (18:04 -0700)
include/deal.II/base/thread_management.h

index b15fd6e1c550a9b10ce142308353d24df521c588..f034fc7b3d98b6b78f2092ba82836ab2e286d081 100644 (file)
@@ -33,7 +33,6 @@
 #  include <memory>
 #  include <mutex>
 #  include <thread>
-#  include <tuple>
 #  include <utility>
 #  include <vector>
 
@@ -919,10 +918,8 @@ namespace Threads
     void
     join_all() const
     {
-      for (typename std::list<Thread<RT>>::const_iterator t = threads.begin();
-           t != threads.end();
-           ++t)
-        t->join();
+      for (auto &t : threads)
+        t.join();
     }
 
   private:

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.