]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Name a function better.
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 8 Dec 2021 16:51:08 +0000 (09:51 -0700)
committerMatthias Maier <tamiko@43-1.org>
Wed, 12 Jan 2022 10:19:01 +0000 (04:19 -0600)
Previously, the TBB required it to be operator(), but the new system
no longer requires this.

include/deal.II/base/work_stream.h

index 86e18a09c87a16487ab9025e4a51476cbcd12dd7..86b9626934cca27a57bb12a01b95511084ce5c5d 100644 (file)
@@ -350,7 +350,7 @@ namespace WorkStream
          * Create an item and return a pointer to it.
          */
         ItemType *
-        operator()()
+        get_item()
         {
           // find first unused item. we know that there must be one
           // because we have set the maximal number of tokens in flight
@@ -492,7 +492,7 @@ namespace WorkStream
                                         sample_copy_data);
         auto tbb_item_stream_filter = tbb::make_filter<void, ItemType *>(
           tbb::filter::serial, [&](tbb::flow_control &fc) -> ItemType * {
-            if (const auto item = iterator_range_to_item_stream())
+            if (const auto item = iterator_range_to_item_stream.get_item())
               return item;
             else
               {

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.