pub struct ThreadData<T: Send> { /* private fields */ }
Expand description
The static data associated with each thread. The stack is kept separate, as it is intended to go into an uninitialized linker section.
Implementations§
Source§impl<T: Send> ThreadData<T>
impl<T: Send> ThreadData<T>
Sourcepub fn acquire_old<const SIZE: usize>(
&'static self,
args: T,
stack: &'static ThreadStack<SIZE>,
entry: k_thread_entry_t,
)
pub fn acquire_old<const SIZE: usize>( &'static self, args: T, stack: &'static ThreadStack<SIZE>, entry: k_thread_entry_t, )
Acquire the thread, in preparation to run it.
Sourcepub fn acquire<const SIZE: usize>(
pool: &'static [Self],
stacks: &'static [ThreadStack<SIZE>],
args: T,
entry: k_thread_entry_t,
priority: c_int,
name: &'static CStr,
) -> ReadyThread
pub fn acquire<const SIZE: usize>( pool: &'static [Self], stacks: &'static [ThreadStack<SIZE>], args: T, entry: k_thread_entry_t, priority: c_int, name: &'static CStr, ) -> ReadyThread
Acquire a thread from the pool of threads, panicing if the pool is exhausted.
Auto Trait Implementations§
impl<T> !Freeze for ThreadData<T>
impl<T> !RefUnwindSafe for ThreadData<T>
impl<T> !Send for ThreadData<T>
impl<T> Sync for ThreadData<T>
impl<T> Unpin for ThreadData<T>where
T: Unpin,
impl<T> UnwindSafe for ThreadData<T>where
T: UnwindSafe,
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