Skip to content

Commit e818406

Browse files
committed
rt: Expand rust_kernel::live_tasks to a uintptr_t
1 parent 9fa950e commit e818406

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/rt/rust_kernel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ rust_kernel::fail() {
8484

8585
void
8686
rust_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) {
9999
void
100100
rust_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);

src/rt/rust_kernel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)