pub struct SysCpu;Implementations§
Source§impl SysCpu
impl SysCpu
pub const OP_EXIT: u8 = 1u8
pub const OP_WAIT: u8 = 2u8
pub const OP_WAKE: u8 = 3u8
pub const OP_KILL: u8 = 4u8
pub const OP_SPAWN: u8 = 5u8
pub const OP_USAGE: u8 = 6u8
pub const OP_AFFINE_CPU: u8 = 7u8
pub const F_HANDLE_ARRAY: u32 = 1u32
pub const F_TIMEOUT: u32 = 2u32
pub const F_DONTBLOCK: u32 = 4u32
pub const F_SWAP_TARGET: u32 = 8u32
pub const F_WAKE_TARGET: u32 = 16u32
pub fn exit(code: u64) -> !
pub fn kill(target: SysHandle) -> Result<(), ErrorCode>
pub fn wake(target: SysHandle) -> Result<(), ErrorCode>
pub fn wait( wait_handles: &mut [SysHandle], swap_target: SysHandle, wake_target: SysHandle, timeout: Option<Instant>, ) -> Result<(), ErrorCode>
pub fn spawn( process: SysHandle, stack_start: u64, thread_fn: u64, thread_arg: u64, ) -> Result<SysHandle, ErrorCode>
pub fn sched_yield()
pub fn query_stats(buf: &mut [f32]) -> Result<(), ErrorCode>
Auto Trait Implementations§
impl Freeze for SysCpu
impl RefUnwindSafe for SysCpu
impl Send for SysCpu
impl Sync for SysCpu
impl Unpin for SysCpu
impl UnwindSafe for SysCpu
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