diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-03-29 16:31:30 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-03-31 19:51:29 -0700 |
| commit | 243790836a40fd3f23d8bd16d8f45430d19aae61 (patch) | |
| tree | 972cd3efcba28932a840aa9af3d244232a1e9711 /src/rt/rust.cpp | |
| parent | 6bf8d19712e2310ab6a7da2e82b2287278a772e4 (diff) | |
| download | rust-243790836a40fd3f23d8bd16d8f45430d19aae61.tar.gz rust-243790836a40fd3f23d8bd16d8f45430d19aae61.zip | |
rt: Rename rust_task_thread to rust_sched_loop
This class no longer represents a thread; it just schedules tasks.
Diffstat (limited to 'src/rt/rust.cpp')
| -rw-r--r-- | src/rt/rust.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rt/rust.cpp b/src/rt/rust.cpp index e647e053f7c..d1adf41118f 100644 --- a/src/rt/rust.cpp +++ b/src/rt/rust.cpp @@ -80,15 +80,14 @@ rust_start(uintptr_t main_fn, int argc, char **argv, void* crate_map) { rust_sched_id sched_id = kernel->create_scheduler(env->num_sched_threads); rust_scheduler *sched = kernel->get_scheduler_by_id(sched_id); rust_task *root_task = sched->create_task(NULL, "main"); - rust_task_thread *thread = root_task->thread; command_line_args *args = new (kernel, "main command line args") command_line_args(root_task, argc, argv); - DLOG(thread, dom, "startup: %d args in 0x%" PRIxPTR, + LOG(root_task, dom, "startup: %d args in 0x%" PRIxPTR, args->argc, (uintptr_t)args->args); for (int i = 0; i < args->argc; i++) { - DLOG(thread, dom, "startup: arg[%d] = '%s'", i, args->argv[i]); + LOG(root_task, dom, "startup: arg[%d] = '%s'", i, args->argv[i]); } root_task->start((spawn_fn)main_fn, NULL, args->args); |
