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

std::thread termination #545

Closed
ghost opened this issue Oct 12, 2015 · 2 comments
Closed

std::thread termination #545

ghost opened this issue Oct 12, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 12, 2015

In some cases thread just can hang. Would not we should have more control on this kind of situation? Like .terminate(), .kill(), etc.
Yeah, i know pitfalls. Possible unreleased memory and other stuff. But it still better, then waiting forever to stop thread(which can never stopped).

@jwakely
Copy link
Member

jwakely commented Oct 12, 2015

You seem to be requesting a design change, not an editorial issue, and this is the wrong place to do that.

Thread cancellation was discussed at length during the C++0x process and was not deemed suitable for standardisation. If you want to propose a change to the language please see https://isocpp.org/std/submit-a-proposal

@jwakely jwakely closed this as completed Oct 12, 2015
@jwakely
Copy link
Member

jwakely commented Oct 12, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant