mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-21 08:26:30 +00:00
Refactor process table
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
91171c38ec
commit
6ece48c095
@ -69,7 +69,7 @@ fn get_processes(prio_target: PriorityTarget) -> Result<Vec<Arc<Process>>> {
|
||||
}
|
||||
PriorityTarget::User(uid) => {
|
||||
// Get the processes that are running under the specified user
|
||||
let processes: Vec<Arc<Process>> = process_table::process_table()
|
||||
let processes: Vec<Arc<Process>> = process_table::process_table_mut()
|
||||
.iter()
|
||||
.filter(|process| {
|
||||
let Some(main_thread) = process.main_thread() else {
|
||||
|
Reference in New Issue
Block a user