diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-11-08 14:26:16 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-11-08 14:28:41 -0800 |
| commit | 68f82de8178ca5f7ed7a3803fdc41f84fc97664b (patch) | |
| tree | edb675d22632be1ce410139b36702de1a1924973 /src/rt/rust_builtin.cpp | |
| parent | 2f8b69534435d8dc459e5731d8fb41b22725b37f (diff) | |
| download | rust-68f82de8178ca5f7ed7a3803fdc41f84fc97664b.tar.gz rust-68f82de8178ca5f7ed7a3803fdc41f84fc97664b.zip | |
rt: Remove task_yield builtin
This is just a special case of task_sleep
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index d05682170d2..dd1e6a2c15c 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -171,12 +171,6 @@ task_sleep(size_t time_in_us) { task->yield(time_in_us); } -extern "C" CDECL void -task_yield() { - rust_task *task = rust_scheduler::get_task(); - task->yield(1); -} - /* Debug builtins for std::dbg. */ static void |
