Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

future::unwrap hangs for launch::deferred #1182

Closed
eschnett opened this issue Jul 8, 2014 · 0 comments
Closed

future::unwrap hangs for launch::deferred #1182

eschnett opened this issue Jul 8, 2014 · 0 comments

Comments

@eschnett
Copy link
Contributor

eschnett commented Jul 8, 2014

Unwrapping a future that has been created with async(launch::deferred) hangs:

#include <hpx/hpx.hpp>
#include <iostream>
using namespace hpx;
using namespace std;

int hpx_main(int argc, char **argv) {
  cout << "Starting...\n";
  future<future<void> > f1 =
      async(launch::deferred, []() { return async([]() {}); });
  future<void> f2 = f1.unwrap();
  f2.wait();
  cout << "Done.\n";
  return 0;
}
@K-ballo K-ballo self-assigned this Jul 8, 2014
@hkaiser hkaiser added this to the 0.9.9 milestone Jul 8, 2014
@K-ballo K-ballo closed this as completed in 3b2f288 Jul 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants