diff options
| author | Michael Bebenita <mbebenita@mozilla.com> | 2010-08-27 18:26:36 -0700 |
|---|---|---|
| committer | Michael Bebenita <mbebenita@mozilla.com> | 2010-09-07 18:41:07 -0700 |
| commit | f8ff013e3cc737b92b5a140dfd0ddcc5ab6773d9 (patch) | |
| tree | 84daaf59d1eb899021e681927e1103cf08b91dd5 /src/rt/rust.cpp | |
| parent | ffdb5fc8582c77eef7b3a30859eaa216872525a4 (diff) | |
| download | rust-f8ff013e3cc737b92b5a140dfd0ddcc5ab6773d9.tar.gz rust-f8ff013e3cc737b92b5a140dfd0ddcc5ab6773d9.zip | |
Added a few utility classes, cleaned up the include order of .h files, and started to make the Rust kernel own domain message queues rather than the Rust domains themselves.
Diffstat (limited to 'src/rt/rust.cpp')
| -rw-r--r-- | src/rt/rust.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rt/rust.cpp b/src/rt/rust.cpp index 905b0c8a359..43818de5514 100644 --- a/src/rt/rust.cpp +++ b/src/rt/rust.cpp @@ -1,6 +1,5 @@ #include "rust_internal.h" - struct command_line_args { @@ -80,6 +79,7 @@ rust_start(uintptr_t main_fn, rust_crate const *crate, int argc, char **argv) { rust_srv srv; rust_dom dom(&srv, crate, "main"); + srv.kernel->register_domain(&dom); command_line_args args(dom, argc, argv); dom.log(rust_log::DOM, "startup: %d args", args.argc); @@ -99,6 +99,7 @@ rust_start(uintptr_t main_fn, rust_crate const *crate, int argc, char **argv) sizeof(main_args)); ret = dom.start_main_loop(); + srv.kernel->deregister_domain(&dom); } #if !defined(__WIN32__) |
