Add at_exit function #4450
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user