pub struct PidAllocator {
unused: Range<usize>,
recycled: Vec<usize>,
}Expand description
PID 分配器
PID 分配器基于栈分配 PID,维护了未使用的 PID 范围和回收的 PID 列表。
Fields§
§unused: Range<usize>未使用的 PID 范围
recycled: Vec<usize>回收的 PID 列表
Implementations§
Source§impl PidAllocator
impl PidAllocator
Auto Trait Implementations§
impl Freeze for PidAllocator
impl RefUnwindSafe for PidAllocator
impl Send for PidAllocator
impl Sync for PidAllocator
impl Unpin for PidAllocator
impl UnwindSafe for PidAllocator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more