diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2011-07-13 15:44:09 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2011-07-13 15:44:09 -0700 |
| commit | 39151f2ad8d18554af1d6787bae0b02345e1d90b (patch) | |
| tree | c10c032214af521351cd46d6ee23a5007927bc48 /src/rt/rust_task.cpp | |
| parent | 04b239f3cb9d4b62488dc2d219e9bd9a242bdf8f (diff) | |
| download | rust-39151f2ad8d18554af1d6787bae0b02345e1d90b.tar.gz rust-39151f2ad8d18554af1d6787bae0b02345e1d90b.zip | |
Prohibit trailing whitespace under 'tidy' script. Clean up all caught cases.
Diffstat (limited to 'src/rt/rust_task.cpp')
| -rw-r--r-- | src/rt/rust_task.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index 12965568d15..be30f229e7e 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -127,7 +127,7 @@ void task_start_wrapper(spawn_args *a) a->f(&rval, task, a->a3, a->a4); LOG(task, task, "task exited with value %d", rval); - + LOG(task, task, "task ref_count: %d", task->ref_count); A(task->sched, task->ref_count >= 0, @@ -147,7 +147,7 @@ rust_task::start(uintptr_t spawnee_fn, LOGPTR(sched, "from spawnee", spawnee_fn); I(sched, stk->data != NULL); - + char *sp = (char *)rust_sp; sp -= sizeof(spawn_args); @@ -481,7 +481,7 @@ rust_task::get_handle() { bool rust_task::can_schedule(int id) { - return yield_timer.has_timed_out() && + return yield_timer.has_timed_out() && running_on == -1 && (pinned_on == -1 || pinned_on == id); } |
