rt: Expand rust_kernel::live_tasks to a uintptr_t
This commit is contained in:
parent
9fa950ec53
commit
e818406072
@ -84,7 +84,7 @@ rust_kernel::fail() {
|
||||
|
||||
void
|
||||
rust_kernel::register_task(rust_task *task) {
|
||||
int new_live_tasks;
|
||||
uintptr_t new_live_tasks;
|
||||
{
|
||||
scoped_lock with(task_lock);
|
||||
task->user.id = max_task_id++;
|
||||
@ -99,7 +99,7 @@ rust_kernel::register_task(rust_task *task) {
|
||||
void
|
||||
rust_kernel::release_task_id(rust_task_id id) {
|
||||
KLOG_("Releasing task %" PRIdPTR, id);
|
||||
int new_live_tasks;
|
||||
uintptr_t new_live_tasks;
|
||||
{
|
||||
scoped_lock with(task_lock);
|
||||
task_table.remove(id);
|
||||
|
@ -27,7 +27,7 @@ private:
|
||||
// Tracks the number of tasks that are being managed by
|
||||
// schedulers. When this hits 0 we will tell all schedulers
|
||||
// to exit.
|
||||
int live_tasks;
|
||||
uintptr_t live_tasks;
|
||||
// The next task id
|
||||
rust_task_id max_task_id;
|
||||
hash_map<rust_task_id, rust_task *> task_table;
|
||||
|
Loading…
x
Reference in New Issue
Block a user