Struct kernel_hal::Thread [−][src]
Implementations
impl Thread
[src]
#[export_name = "hal_thread_spawn"]pub fn spawn(
_future: Pin<Box<dyn Future<Output = ()> + Send + 'static>>,
_vmtoken: usize
) -> Self
[src]
_future: Pin<Box<dyn Future<Output = ()> + Send + 'static>>,
_vmtoken: usize
) -> Self
Spawn a new thread.
#[export_name = "hal_thread_set_tid"]pub fn set_tid(_tid: u64, _pid: u64)
[src]
Set tid and pid of current task.
#[export_name = "hal_thread_get_tid"]pub fn get_tid() -> (u64, u64)
[src]
Get tid and pid of current task.
Auto Trait Implementations
impl RefUnwindSafe for Thread
impl Send for Thread
impl Sync for Thread
impl Unpin for Thread
impl UnwindSafe for Thread
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,