diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-03-14 20:55:57 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-03-15 11:10:52 -0700 |
| commit | c414b78afed76f63adf4e7538f04b6231f177236 (patch) | |
| tree | 38bc7000fdd2750f8b42731e6f7db180603efc59 /src/rt/rust_task_thread.cpp | |
| parent | 1366d656605049f2e58525c7cad5433da9977db2 (diff) | |
| download | rust-c414b78afed76f63adf4e7538f04b6231f177236.tar.gz rust-c414b78afed76f63adf4e7538f04b6231f177236.zip | |
rt: Remove the kernel task table
Diffstat (limited to 'src/rt/rust_task_thread.cpp')
| -rw-r--r-- | src/rt/rust_task_thread.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rt/rust_task_thread.cpp b/src/rt/rust_task_thread.cpp index a167c63cfe2..fd7c10ef676 100644 --- a/src/rt/rust_task_thread.cpp +++ b/src/rt/rust_task_thread.cpp @@ -146,8 +146,6 @@ rust_task_thread::reap_dead_tasks() { // from the scheduler, which may end up trying to take this lock lock.unlock(); - // Release the task from the kernel so nobody else can get at it - kernel->release_task_id(dead_task->id); dead_task->delete_all_stacks(); // Deref the task, which may cause it to request us to release it dead_task->deref(); @@ -316,7 +314,7 @@ rust_task_thread::create_task(rust_task *spawner, const char *name, newborn_tasks.append(task); } - kernel->register_task(task); + task->id = kernel->generate_task_id(); return task; } |
