File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ rust_kernel::fail() {
8484
8585void
8686rust_kernel::register_task (rust_task *task) {
87- int new_live_tasks;
87+ uintptr_t new_live_tasks;
8888 {
8989 scoped_lock with (task_lock);
9090 task->user .id = max_task_id++;
@@ -99,7 +99,7 @@ rust_kernel::register_task(rust_task *task) {
9999void
100100rust_kernel::release_task_id (rust_task_id id) {
101101 KLOG_ (" Releasing task %" PRIdPTR, id);
102- int new_live_tasks;
102+ uintptr_t new_live_tasks;
103103 {
104104 scoped_lock with (task_lock);
105105 task_table.remove (id);
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class rust_kernel {
2727 // Tracks the number of tasks that are being managed by
2828 // schedulers. When this hits 0 we will tell all schedulers
2929 // to exit.
30- int live_tasks;
30+ uintptr_t live_tasks;
3131 // The next task id
3232 rust_task_id max_task_id;
3333 hash_map<rust_task_id, rust_task *> task_table;
You can’t perform that action at this time.
0 commit comments