Add at_exit function #4450

This commit is contained in:
Brian Anderson
2013-01-11 15:55:14 -08:00
parent 090b247056
commit ac435af73a
6 changed files with 157 additions and 0 deletions

View File

@@ -1026,6 +1026,11 @@ rust_raw_thread_join_delete(raw_thread *thread) {
delete thread;
}
extern "C" void
rust_register_exit_function(spawn_fn runner, fn_env_pair *f) {
rust_task *task = rust_get_current_task();
task->kernel->register_exit_function(runner, f);
}
//
// Local Variables: