diff options
| author | Brian Anderson <banderson@mozilla.com> | 2013-01-11 15:55:14 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2013-01-15 18:00:19 -0800 |
| commit | ac435af73a0009daf22164ee2f081a7c98ca844c (patch) | |
| tree | de3ee3f04207844cd85925d2fa2ad54fb96e031a /src/rt/rust_builtin.cpp | |
| parent | 090b247056a9dd2d4d4a32c631fe2f0ddd3e744d (diff) | |
| download | rust-ac435af73a0009daf22164ee2f081a7c98ca844c.tar.gz rust-ac435af73a0009daf22164ee2f081a7c98ca844c.zip | |
Add at_exit function #4450
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index cbc58e85db6..a37aea13e40 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -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: |
