Skip to content

Commit

Permalink
Fix shared_future_continuation_order regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
Pansysk75 committed Sep 1, 2023
1 parent a6ed839 commit c4abeff
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ int hpx_main()
hpx::promise<int> p;
hpx::shared_future<int> f1 = p.get_future();

hpx::future<int> f2 = f1.then([](hpx::shared_future<int>&& f) {
hpx::future<int> f2 = f1.then(hpx::launch::sync, [](hpx::shared_future<int>&& f) {
HPX_TEST_EQ(f.get(), 42);
return ++invocation_count;
});

hpx::future<int> f3 = f1.then([](hpx::shared_future<int>&& f) {
hpx::future<int> f3 = f1.then(hpx::launch::sync, [](hpx::shared_future<int>&& f) {
HPX_TEST_EQ(f.get(), 42);
return ++invocation_count;
});
Expand Down

0 comments on commit c4abeff

Please sign in to comment.