#[repr(C)]pub struct k_thread {
pub base: _thread_base,
pub callee_saved: _callee_saved,
pub init_data: *mut c_void,
pub join_queue: _wait_q_t,
pub stack_info: _thread_stack_info,
pub resource_pool: *mut k_heap,
pub tls: usize,
pub arch: _thread_arch,
}
Expand description
@ingroup thread_apis Thread Structure
Fields§
§base: _thread_base
§callee_saved: _callee_saved
defined by the architecture, but all archs need these
init_data: *mut c_void
static thread init data
join_queue: _wait_q_t
threads waiting in k_thread_join()
stack_info: _thread_stack_info
Stack Info
resource_pool: *mut k_heap
resource pool
tls: usize
§arch: _thread_arch
arch-specifics: must always be at the end
Auto Trait Implementations§
impl Freeze for k_thread
impl RefUnwindSafe for k_thread
impl !Send for k_thread
impl !Sync for k_thread
impl Unpin for k_thread
impl UnwindSafe for k_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