2025-04-21 21:35:18 +08:00

12 lines
246 B
Rust

// To make compatible
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Pid(usize);
pub struct ProcessManager {}
impl ProcessManager {
pub fn current_pid() -> Pid {
Pid(std::thread::current().id().as_u64().get() as usize)
}
}