diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-02-03 15:21:24 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-02-03 23:48:12 -0800 |
| commit | bf250bec7c59b52bbeb6bcb67d4b09133fd2f483 (patch) | |
| tree | f87451dcc2ae5a86edab34c1d0c007b814b492d4 /src/rt/rust_builtin.cpp | |
| parent | 3d0e7a7af3eeee433dd942bca01e085d7d5866a7 (diff) | |
| download | rust-bf250bec7c59b52bbeb6bcb67d4b09133fd2f483.tar.gz rust-bf250bec7c59b52bbeb6bcb67d4b09133fd2f483.zip | |
rt: Create new tasks through the current thread's scheduler
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
