Skip to content

Commit

Permalink
Fixing example if run on one thread
Browse files Browse the repository at this point in the history
  • Loading branch information
hkaiser committed Aug 31, 2017
1 parent c4e1087 commit d374d7c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/resource_partitioner/simple_resource_partitioner.cpp
Expand Up @@ -141,8 +141,10 @@ int hpx_main(boost::program_options::variables_map& vm)
}
}
// the last futures we made are stored in here
future_4.get();
future_5.get();
if (future_4.valid())
future_4.get();
if (future_5.valid())
future_5.get();
});

future_3.get();
Expand Down

0 comments on commit d374d7c

Please sign in to comment.