mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
allow a process to identify itself
this makes debugging code a lot more ergonomic. I don't think this impacts security...
This commit is contained in:
parent
853f9d3cd3
commit
d7a8671e7e
1 changed files with 5 additions and 0 deletions
|
|
@ -543,6 +543,11 @@ impl Process {
|
||||||
}
|
}
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// This is used by debugging routines to sanity check state, which are typically #[cfg]'d out
|
||||||
|
/// but with complicated overlapping rules that constantly change. Hence, the #[allow(dead_code)].
|
||||||
|
#[allow(dead_code)]
|
||||||
|
pub fn pid(&self) -> PID { self.pid }
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Thread {
|
impl Thread {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue