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 at_exit runtime function #4450

Closed
brson opened this issue Jan 11, 2013 · 1 comment
Closed

Add at_exit runtime function #4450

brson opened this issue Jan 11, 2013 · 1 comment
Labels
A-runtime Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows C-enhancement Category: An issue proposing an enhancement or a PR with one.

Comments

@brson
Copy link
Contributor

brson commented Jan 11, 2013

Part of removing comm: #3915.

Both global data and weak tasks need to execute some code immediately before runtime shutdown, and there will probably be others in the future. To facilitate this I intend to add a privileged function, fn at_exit(~fn()).

@brson
Copy link
Contributor Author

brson commented Jan 11, 2013

This will ultimately make weak tasks unknown to the runtime - they will instead be built on at_exit.

brson added a commit to brson/rust that referenced this issue Jan 12, 2013
brson added a commit to brson/rust that referenced this issue Jan 13, 2013
brson added a commit to brson/rust that referenced this issue Jan 16, 2013
@brson brson closed this as completed Feb 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-runtime Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows C-enhancement Category: An issue proposing an enhancement or a PR with one.
Projects
None yet
Development

No branches or pull requests

1 participant