[][src]Enum sunrise_kernel::process::ThreadState

#[repr(usize)]pub enum ThreadState {
    Paused,
    Running,
    TerminationPending,
    Scheduled,
}

The state of a thread.

Since SMP is not supported, there is only one Running thread.

Variants

Paused

Not in the scheduled queue, waiting for an event.

Running

Currently on the CPU.

TerminationPending

Dying, will be unscheduled and dropped at syscall boundary.

Scheduled

Scheduled to be running.

Implementations

impl ThreadState[src]

fn from_primitive(v: usize) -> ThreadState[src]

ThreadState is stored in the ThreadStruct as an AtomicUsize. This function casts it back to the enum.

Trait Implementations

impl Clone for ThreadState[src]

impl Copy for ThreadState[src]

impl Debug for ThreadState[src]

impl Eq for ThreadState[src]

impl PartialEq<ThreadState> for ThreadState[src]

impl StructuralEq for ThreadState[src]

impl StructuralPartialEq for ThreadState[src]

Auto Trait Implementations

impl RefUnwindSafe for ThreadState

impl Send for ThreadState

impl Sync for ThreadState

impl Unpin for ThreadState

impl UnwindSafe for ThreadState

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.