]> 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)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 8 Dec 2021 19:15:48 +0000 (12:15 -0700)
Previously, the TBB required it to be operator(), but the new system
no longer requires this.

include/deal.II/base/work_stream.h

index 433b1a9a9df5fd4e23e4fcd23fd7c760d5527153..12bbaab303bb7ec05fbb7ac12769f699ede8dafe 100644 (file)
@@ -346,7 +346,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
@@ -494,7 +494,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.