diff options
Diffstat (limited to 'src/rt/rust_kernel.cpp')
| -rw-r--r-- | src/rt/rust_kernel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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 * |
