From ae89ea223de2fe5e9c9a5cdd2fa85a93828a7daa Mon Sep 17 00:00:00 2001 From: Eric Holk Date: Wed, 17 Aug 2011 14:42:28 -0700 Subject: Making more of the rust_task structure directly accessible from Rust. --- src/rt/rust_kernel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/rt/rust_kernel.cpp') diff --git a/src/rt/rust_kernel.cpp b/src/rt/rust_kernel.cpp index 02d15b31eb2..9899939da02 100644 --- a/src/rt/rust_kernel.cpp +++ b/src/rt/rust_kernel.cpp @@ -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 * -- cgit 1.4.1-3-g733a5