about summary refs log tree commit diff
path: root/src/rt/rust_task_thread.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-03-14 20:22:34 -0700
committerBrian Anderson <banderson@mozilla.com>2012-03-15 11:10:52 -0700
commit1366d656605049f2e58525c7cad5433da9977db2 (patch)
tree1d2c2593180d038af2b63b4930d9e9636e54e44a /src/rt/rust_task_thread.cpp
parentb278d675a231fdfe825c72e499d59e8a3d07ffaa (diff)
downloadrust-1366d656605049f2e58525c7cad5433da9977db2.tar.gz
rust-1366d656605049f2e58525c7cad5433da9977db2.zip
rt: Remove remaining uses of rust_kernel::get_task_by_id
Diffstat (limited to 'src/rt/rust_task_thread.cpp')
-rw-r--r--src/rt/rust_task_thread.cpp6
1 files changed, 2 insertions, 4 deletions
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