diff options
| author | Eric Holk <eholk@mozilla.com> | 2011-07-23 14:01:43 -0700 |
|---|---|---|
| committer | Eric Holk <eholk@mozilla.com> | 2011-07-28 10:47:28 -0700 |
| commit | b51f5c395cc3458e428159b908ca95b1777e66e2 (patch) | |
| tree | a531c23c4a54812fd6de8faee80f24f3e4607da9 /src/rt/test/rust_test_runtime.cpp | |
| parent | c15871ac517136e216a1783d722307a1da1da106 (diff) | |
| download | rust-b51f5c395cc3458e428159b908ca95b1777e66e2.tar.gz rust-b51f5c395cc3458e428159b908ca95b1777e66e2.zip | |
Made root_task no longer special.
Diffstat (limited to 'src/rt/test/rust_test_runtime.cpp')
| -rw-r--r-- | src/rt/test/rust_test_runtime.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rt/test/rust_test_runtime.cpp b/src/rt/test/rust_test_runtime.cpp index 8acfe45c9e6..f9a99d9acb1 100644 --- a/src/rt/test/rust_test_runtime.cpp +++ b/src/rt/test/rust_test_runtime.cpp @@ -45,9 +45,9 @@ void task_entry() { void rust_task_test::worker::run() { - rust_scheduler *scheduler = kernel->get_scheduler(); - scheduler->root_task->start((uintptr_t)&task_entry, (uintptr_t)NULL); - scheduler->start_main_loop(0); + rust_task *root_task = kernel->create_task(NULL, "main"); + root_task->start((uintptr_t)&task_entry, (uintptr_t)NULL); + root_task->sched->start_main_loop(0); } bool |
