mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-12 23:06:51 +00:00
Fix the condition in is_last_thread
This commit is contained in:
parent
2bda8d17c4
commit
f159b42b61
@ -277,7 +277,7 @@ impl PosixThread {
|
|||||||
let tasks = process.tasks().lock();
|
let tasks = process.tasks().lock();
|
||||||
tasks
|
tasks
|
||||||
.iter()
|
.iter()
|
||||||
.any(|task| !Thread::borrow_from_task(task).status().is_exited())
|
.all(|task| Thread::borrow_from_task(task).status().is_exited())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Gets the read-only credentials of the thread.
|
/// Gets the read-only credentials of the thread.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user