diff options
| author | toddaaro <github@opprobrio.us> | 2013-06-14 12:17:56 -0700 |
|---|---|---|
| committer | toddaaro <github@opprobrio.us> | 2013-06-14 12:17:56 -0700 |
| commit | d1ec8b5fb85cb6fd4caed64223c5cb3fd920daab (patch) | |
| tree | 47dc844dc524065a5c5c7948c149488ce0390e7b /src/libstd/task/spawn.rs | |
| parent | 4224fc7aad3cfbd7093e55812e5a566d7aad3325 (diff) | |
| download | rust-d1ec8b5fb85cb6fd4caed64223c5cb3fd920daab.tar.gz rust-d1ec8b5fb85cb6fd4caed64223c5cb3fd920daab.zip | |
redesigned the pinning to pin deal with things on dequeue, not on enqueue
Diffstat (limited to 'src/libstd/task/spawn.rs')
| -rw-r--r-- | src/libstd/task/spawn.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/task/spawn.rs b/src/libstd/task/spawn.rs index 5941221821a..5e507238f67 100644 --- a/src/libstd/task/spawn.rs +++ b/src/libstd/task/spawn.rs @@ -578,7 +578,7 @@ fn spawn_raw_newsched(_opts: TaskOpts, f: ~fn()) { let mut sched = Local::take::<Scheduler>(); let task = ~Coroutine::new(&mut sched.stack_pool, f); - sched.schedule_new_task(task); + sched.schedule_task(task); } fn spawn_raw_oldsched(mut opts: TaskOpts, f: ~fn()) { |
