From 1366d656605049f2e58525c7cad5433da9977db2 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 14 Mar 2012 20:22:34 -0700 Subject: rt: Remove remaining uses of rust_kernel::get_task_by_id --- src/rt/rust_task_thread.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/rt/rust_task_thread.cpp') diff --git a/src/rt/rust_task_thread.cpp b/src/rt/rust_task_thread.cpp index e108a21f3a9..a167c63cfe2 100644 --- a/src/rt/rust_task_thread.cpp +++ b/src/rt/rust_task_thread.cpp @@ -159,8 +159,6 @@ void rust_task_thread::release_task(rust_task *task) { // Nobody should have a ref to the task at this point I(this, task->get_ref_count() == 0); - // Kernel should not know about the task any more - I(this, kernel->get_task_by_id(task->id) == NULL); // Now delete the task, which will require using this thread's // memory region. delete task; @@ -304,7 +302,7 @@ rust_task_thread::get_cache() { return &cache; } -rust_task_id +rust_task * rust_task_thread::create_task(rust_task *spawner, const char *name, size_t init_stack_sz) { rust_task *task = @@ -319,7 +317,7 @@ rust_task_thread::create_task(rust_task *spawner, const char *name, } kernel->register_task(task); - return task->id; + return task; } void -- cgit 1.4.1-3-g733a5