pub struct Thread(pub UnsafeCell<k_thread>);
Expand description
A zephyr thread.
This declares a single k_thread in Zephyr.
Tuple Fields§
§0: UnsafeCell<k_thread>
Implementations§
Source§impl Thread
impl Thread
Sourcepub const unsafe fn new() -> Self
pub const unsafe fn new() -> Self
Static allocation of a thread
This makes the zero-initialized memory that can later be used as a thread.
§Safety
The caller is responsible for using operations such as create
to construct the thread,
according to the underlying semantics of the Zephyr operations.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Thread
impl !RefUnwindSafe for Thread
impl !Send for Thread
impl Unpin for Thread
impl UnwindSafe for Thread
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