2021-02-15 11:15:58 +00:00
|
|
|
pub fn id() -> u32 {
|
2021-03-18 12:10:01 +00:00
|
|
|
if let Ok(pid) = crate::syscall::current_pid() {
|
2021-03-11 04:27:55 +00:00
|
|
|
pid.get() as u32
|
|
|
|
|
} else {
|
|
|
|
|
0
|
|
|
|
|
}
|
2021-02-15 11:15:58 +00:00
|
|
|
}
|
|
|
|
|
|
2021-03-11 04:27:55 +00:00
|
|
|
pub fn set_id(_id: u32) {}
|