File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2765,14 +2765,14 @@ void async(unsigned W) {
2765
2765
2766
2766
tf::Executor executor (W);
2767
2767
2768
- std::vector<std::future<int >> fu ;
2768
+ std::vector<std::future<int >> fus ;
2769
2769
2770
2770
std::atomic<int > counter (0 );
2771
2771
2772
2772
int N = 100000 ;
2773
2773
2774
2774
for (int i=0 ; i<N; ++i) {
2775
- fu .emplace_back (executor.async ([&](){
2775
+ fus .emplace_back (executor.async ([&](){
2776
2776
counter.fetch_add (1 , std::memory_order_relaxed);
2777
2777
return -2 ;
2778
2778
}));
@@ -2783,7 +2783,7 @@ void async(unsigned W) {
2783
2783
REQUIRE (counter == N);
2784
2784
2785
2785
int c = 0 ;
2786
- for (auto & fu : fu ) {
2786
+ for (auto & fu : fus ) {
2787
2787
c += fu.get ();
2788
2788
}
2789
2789
@@ -2818,14 +2818,14 @@ void nested_async(unsigned W) {
2818
2818
2819
2819
tf::Executor executor (W);
2820
2820
2821
- std::vector<std::future<int >> fu ;
2821
+ std::vector<std::future<int >> fus ;
2822
2822
2823
2823
std::atomic<int > counter (0 );
2824
2824
2825
2825
int N = 100000 ;
2826
2826
2827
2827
for (int i=0 ; i<N; ++i) {
2828
- fu .emplace_back (executor.async ([&](){
2828
+ fus .emplace_back (executor.async ([&](){
2829
2829
counter.fetch_add (1 , std::memory_order_relaxed);
2830
2830
executor.async ([&](){
2831
2831
counter.fetch_add (1 , std::memory_order_relaxed);
@@ -2845,7 +2845,7 @@ void nested_async(unsigned W) {
2845
2845
REQUIRE (counter == 4 *N);
2846
2846
2847
2847
int c = 0 ;
2848
- for (auto & fu : fu ) {
2848
+ for (auto & fu : fus ) {
2849
2849
c += fu.get ();
2850
2850
}
2851
2851
You can’t perform that action at this time.
0 commit comments