Properly deallocate thread stack on pthread_exit.

This commit is contained in:
4lDO2
2024-08-05 13:22:18 +02:00
parent af6435e12d
commit fed49a29af
5 changed files with 26 additions and 14 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ impl Pal for Sys {
}
loop {}
}
fn exit_thread() -> ! {
unsafe fn exit_thread(_stack_base: *mut (), _stack_size: usize) -> ! {
// TODO
Self::exit(0)
}