From 0667fb4e6342a6a18320b464316ae7ba9c2bc192 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 8 Feb 2012 20:52:52 -0800 Subject: rt: Make rust_task::ref_count private --- src/rt/rust_kernel.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/rt/rust_kernel.cpp') diff --git a/src/rt/rust_kernel.cpp b/src/rt/rust_kernel.cpp index 9768fffaf0b..8752ea37be9 100644 --- a/src/rt/rust_kernel.cpp +++ b/src/rt/rust_kernel.cpp @@ -190,6 +190,7 @@ rust_kernel::get_task_by_id(rust_task_id id) { task_table.get(id, &task); if(task) { if(task->get_ref_count() == 0) { + // FIXME: I don't think this is possible. // this means the destructor is running, since the destructor // grabs the kernel lock to unregister the task. Pretend this // doesn't actually exist. -- cgit 1.4.1-3-g733a5