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: Re-enable at_exit() #20045

Merged
merged 1 commit into from
Dec 31, 2014
Merged

std: Re-enable at_exit() #20045

merged 1 commit into from
Dec 31, 2014

Conversation

alexcrichton
Copy link
Member

The new semantics of this function are that the callbacks are run when the main
thread
exits, not when all threads have exited. This implies that other threads
may still be running when the at_exit callbacks are invoked and users need to
be prepared for this situation.

Users in the standard library have been audited in accordance to these new rules
as well.

Closes #20012

@rust-highfive
Copy link
Contributor

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member Author

r? @aturon

The new semantics of this function are that the callbacks are run when the *main
thread* exits, not when all threads have exited. This implies that other threads
may still be running when the `at_exit` callbacks are invoked and users need to
be prepared for this situation.

Users in the standard library have been audited in accordance to these new rules
as well.

Closes rust-lang#20012
alexcrichton added a commit to alexcrichton/rust that referenced this pull request Dec 31, 2014
The new semantics of this function are that the callbacks are run when the *main
thread* exits, not when all threads have exited. This implies that other threads
may still be running when the `at_exit` callbacks are invoked and users need to
be prepared for this situation.

Users in the standard library have been audited in accordance to these new rules
as well.

Closes rust-lang#20012
@bors bors merged commit 9e224c2 into rust-lang:master Dec 31, 2014
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

Successfully merging this pull request may close these issues.

Resolve at_exit strategy after std::thread lands
5 participants