From c796a8f24dfa94a1614da70fbf25b63d3709a116 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Wed, 29 Jun 2011 15:11:20 -0700 Subject: Re-enable tidy (it was broken) and fix various non-tidy things. --- src/rt/rust_kernel.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'src/rt/rust_kernel.cpp') diff --git a/src/rt/rust_kernel.cpp b/src/rt/rust_kernel.cpp index f3ebfd4f4b9..8a75e1adcbc 100644 --- a/src/rt/rust_kernel.cpp +++ b/src/rt/rust_kernel.cpp @@ -52,7 +52,9 @@ rust_kernel::internal_get_sched_handle(rust_scheduler *sched) { rust_handle *handle = NULL; if (_sched_handles.get(sched, &handle) == false) { handle = - new (this) rust_handle(this, sched->message_queue, sched); + new (this) rust_handle(this, + sched->message_queue, + sched); _sched_handles.put(sched, handle); } return handle; @@ -72,7 +74,8 @@ rust_kernel::get_task_handle(rust_task *task) { rust_handle *handle = NULL; if (_task_handles.get(task, &handle) == false) { handle = - new (this) rust_handle(this, task->sched->message_queue, + new (this) rust_handle(this, + task->sched->message_queue, task); _task_handles.put(task, handle); } @@ -85,10 +88,10 @@ rust_kernel::get_port_handle(rust_port *port) { _kernel_lock.lock(); rust_handle *handle = NULL; if (_port_handles.get(port, &handle) == false) { - handle = - new (this) rust_handle(this, - port->task->sched->message_queue, - port); + handle = new (this) + rust_handle(this, + port->task->sched->message_queue, + port); _port_handles.put(port, handle); } _kernel_lock.unlock(); -- cgit 1.4.1-3-g733a5