diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-03-31 23:12:06 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-03-31 23:12:06 -0700 |
| commit | 21064637ed8b8259d1305f21ace12c40b9561706 (patch) | |
| tree | c402d24572a9b4610930106d90358c1aeba2625a /src/rt/rust_task.cpp | |
| parent | cf0c4cd7d2918205c13df38c4a62f93e1c72c1ac (diff) | |
| download | rust-21064637ed8b8259d1305f21ace12c40b9561706.tar.gz rust-21064637ed8b8259d1305f21ace12c40b9561706.zip | |
rt: Fix whitespace
Diffstat (limited to 'src/rt/rust_task.cpp')
| -rw-r--r-- | src/rt/rust_task.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index d77c7cf733e..83a357f9e19 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -44,7 +44,8 @@ rust_task::rust_task(rust_task_thread *thread, rust_task_state state, supervisor(spawner) { LOGPTR(thread, "new task", (uintptr_t)this); - DLOG(thread, task, "sizeof(task) = %d (0x%x)", sizeof *this, sizeof *this); + DLOG(thread, task, "sizeof(task) = %d (0x%x)", + sizeof *this, sizeof *this); new_stack(init_stack_sz); if (supervisor) { @@ -136,7 +137,7 @@ void task_start_wrapper(spawn_args *a) bool threw_exception = false; try { - // The first argument is the return pointer; as the task fn + // The first argument is the return pointer; as the task fn // must have void return type, we can safely pass 0. a->f(0, a->envptr, a->argptr); } catch (rust_task *ex) { @@ -400,7 +401,8 @@ rust_task::wakeup(rust_cond *from) { A(thread, cond != NULL, "Cannot wake up unblocked task."); LOG(this, task, "Blocked on 0x%" PRIxPTR " woken up on 0x%" PRIxPTR, (uintptr_t) cond, (uintptr_t) from); - A(thread, cond == from, "Cannot wake up blocked task on wrong condition."); + A(thread, cond == from, + "Cannot wake up blocked task on wrong condition."); transition(task_state_blocked, task_state_running, NULL, "none"); } |
