Struct kernel_hal::Thread[][src]

#[repr(C)]pub struct Thread { /* fields omitted */ }

Implementations

impl Thread[src]

#[export_name = "hal_thread_spawn"]pub fn spawn(
    _future: Pin<Box<dyn Future<Output = ()> + Send + 'static>>,
    _vmtoken: usize
) -> Self
[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.