rt: Make rust_task::ref_count private

This commit is contained in:
Brian Anderson
2012-02-08 20:52:52 -08:00
parent ae8ea4a78b
commit 0667fb4e63
3 changed files with 4 additions and 2 deletions

View File

@@ -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.