mirror of
https://github.com/DragonOS-Community/dragonos-berkeley-socket.git
synced 2025-06-08 07:35:03 +00:00
12 lines
246 B
Rust
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)
|
|
}
|
|
}
|