From bf250bec7c59b52bbeb6bcb67d4b09133fd2f483 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Fri, 3 Feb 2012 15:21:24 -0800 Subject: rt: Create new tasks through the current thread's scheduler --- src/rt/rust_builtin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rt/rust_builtin.cpp') diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index bcc3e944711..1fafbc588ae 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -385,7 +385,7 @@ get_task_id() { extern "C" CDECL rust_task_id new_task() { rust_task *task = rust_task_thread::get_task(); - return task->kernel->create_task(task, NULL); + return task->sched->create_task(task, NULL); } extern "C" CDECL void -- cgit 1.4.1-3-g733a5