diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-11-17 15:19:46 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-11-18 10:32:27 -0800 |
| commit | 21865ddce662767ff8319732cb55b4cdbc9ea67e (patch) | |
| tree | 851f95801560eb107217b3057f8f2f0f4ffb8fd9 /src/rt/rust_builtin.cpp | |
| parent | eecbc815ac44be2d17338d6dfd60c1417ba29ff1 (diff) | |
| download | rust-21865ddce662767ff8319732cb55b4cdbc9ea67e.tar.gz rust-21865ddce662767ff8319732cb55b4cdbc9ea67e.zip | |
intrinsics: Remove the call to get_task from task_sleep
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index dd5d2bd1054..0ae191da0f6 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -511,8 +511,7 @@ chan_id_send(type_desc *t, rust_task_id target_task_id, // This is called by an intrinsic on the Rust stack. // Do not call on the C stack. extern "C" CDECL void -rust_task_sleep(size_t time_in_us) { - rust_task *task = rust_scheduler::get_task(); +rust_task_sleep(rust_task *task, size_t time_in_us) { task->yield(time_in_us); } |
