File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2765,14 +2765,14 @@ void async(unsigned W) {
27652765
27662766 tf::Executor executor (W);
27672767
2768- std::vector<std::future<int >> fu ;
2768+ std::vector<std::future<int >> fus ;
27692769
27702770 std::atomic<int > counter (0 );
27712771
27722772 int N = 100000 ;
27732773
27742774 for (int i=0 ; i<N; ++i) {
2775- fu .emplace_back (executor.async ([&](){
2775+ fus .emplace_back (executor.async ([&](){
27762776 counter.fetch_add (1 , std::memory_order_relaxed);
27772777 return -2 ;
27782778 }));
@@ -2783,7 +2783,7 @@ void async(unsigned W) {
27832783 REQUIRE (counter == N);
27842784
27852785 int c = 0 ;
2786- for (auto & fu : fu ) {
2786+ for (auto & fu : fus ) {
27872787 c += fu.get ();
27882788 }
27892789
@@ -2818,14 +2818,14 @@ void nested_async(unsigned W) {
28182818
28192819 tf::Executor executor (W);
28202820
2821- std::vector<std::future<int >> fu ;
2821+ std::vector<std::future<int >> fus ;
28222822
28232823 std::atomic<int > counter (0 );
28242824
28252825 int N = 100000 ;
28262826
28272827 for (int i=0 ; i<N; ++i) {
2828- fu .emplace_back (executor.async ([&](){
2828+ fus .emplace_back (executor.async ([&](){
28292829 counter.fetch_add (1 , std::memory_order_relaxed);
28302830 executor.async ([&](){
28312831 counter.fetch_add (1 , std::memory_order_relaxed);
@@ -2845,7 +2845,7 @@ void nested_async(unsigned W) {
28452845 REQUIRE (counter == 4 *N);
28462846
28472847 int c = 0 ;
2848- for (auto & fu : fu ) {
2848+ for (auto & fu : fus ) {
28492849 c += fu.get ();
28502850 }
28512851
You can’t perform that action at this time.
0 commit comments