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.

This commit is contained in:
Michael Bebenita
2010-08-27 18:26:36 -07:00
parent ffdb5fc858
commit f8ff013e3c
16 changed files with 250 additions and 111 deletions

View File

@@ -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__)