Enum avr_oxide::concurrency::scheduler::ThreadState
source · pub enum ThreadState {
Schedulable,
BackgroundSchedulable,
Suspended,
Zombie,
Dead,
BlockedOnMutex,
BlockedOnThread,
BlockedOnQueue,
BlockedOnEvent,
}
Expand description
The state that a thread can be in
Variants§
Schedulable
This thread can be scheduled for execution
BackgroundSchedulable
This thread can be scheduled for execution, but it is a background thread that should only be run if nothing else is available.
Suspended
This thread is suspended and cannot (currently) be executed until its state is changed to Schedulable
Zombie
This thread has completed execution, but nobody has joined it and consumed the return value, so we can’t replace it yet
Dead
This thread has been killed and may be replaced.
BlockedOnMutex
This thread is waiting for a mutex
BlockedOnThread
This thread is waiting to join another thread
BlockedOnQueue
This thread is waiting for a queue to produce or consume data
BlockedOnEvent
This thread is waiting for an EventWait to release it
Trait Implementations§
source§impl Clone for ThreadState
impl Clone for ThreadState
source§fn clone(&self) -> ThreadState
fn clone(&self) -> ThreadState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl PartialEq for ThreadState
impl PartialEq for ThreadState
source§fn eq(&self, other: &ThreadState) -> bool
fn eq(&self, other: &ThreadState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ThreadState
impl StructuralPartialEq for ThreadState
Auto Trait Implementations§
impl Freeze for ThreadState
impl RefUnwindSafe for ThreadState
impl Send for ThreadState
impl Sync for ThreadState
impl Unpin for ThreadState
impl UnwindSafe for ThreadState
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