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

Comments

Projects
None yet
1 participant
@hkaiser
Copy link
Member

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

This comment has been minimized.

Copy link
Member Author

commented Oct 5, 2012

Fixed in 2e43d21 and e921431.

@hkaiser hkaiser closed this Oct 5, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.