11 lines
265 B
Rust
11 lines
265 B
Rust
use crate::println;
|
|
use crate::proc::scheduler::SCHEDULER;
|
|
|
|
use super::SyscallContextT;
|
|
|
|
pub async fn exit(context: SyscallContextT) {
|
|
println!("Exiting thread");
|
|
let mut scheduler = SCHEDULER.lock().await;
|
|
scheduler.exit(context.borrow().thread_id);
|
|
}
|