Making more of the rust_task structure directly accessible from Rust.

This commit is contained in:
Eric Holk
2011-08-17 14:42:28 -07:00
parent efac7c9a19
commit ae89ea223d
10 changed files with 51 additions and 54 deletions

View File

@@ -154,10 +154,10 @@ rust_kernel::create_task(rust_task *spawner, const char *name) {
rust_task *t = thread->create_task(spawner, name);
{
scoped_lock with(_kernel_lock);
t->id = max_id++;
task_table.put(t->id, t);
t->user.id = max_id++;
task_table.put(t->user.id, t);
}
return t->id;
return t->user.id;
}
rust_task *