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

Add hpx::start/hpx::stop to avoid blocking main thread #563

Closed
hkaiser opened this issue Oct 5, 2012 · 1 comment
Closed

Add hpx::start/hpx::stop to avoid blocking main thread #563

hkaiser opened this issue Oct 5, 2012 · 1 comment

Comments

@hkaiser
Copy link
Member

hkaiser commented Oct 5, 2012

The current use of hpx::init blocks the thread useed to call this function until the HPX runtime system has been stopped. Sometimes it is desirable to leave the calling thread running (GUI applications). We should split hpx::init into two separate functions hpx::start and hpx::stop, where the call to hpx::start is non-blocking. hpx::stop has still to wait for the runtime system to exit.

@ghost ghost assigned hkaiser Oct 5, 2012
@hkaiser
Copy link
Member Author

hkaiser commented Oct 5, 2012

Fixed in 2e43d21 and e921431.

@hkaiser hkaiser closed this as completed Oct 5, 2012
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

1 participant