pub type thread_t = _thread;
Expand description
@brief @c thread_t holds thread’s context data.
Aliased Type§
struct thread_t {}
Fields§
§sp: *mut u8
< thread’s stack pointer
status: u8
< thread’s status
priority: u8
< thread’s priority
pid: i16
< thread’s process id
flags: u16
< currently set flags
rq_entry: list_node
< run queue entry
wait_data: *mut c_void
< used by msg, mbox and thread flags
msg_waiters: list_node
< threads waiting for their message to be delivered to this thread (i.e. all blocked sends)
msg_queue: cib_t
< index of this [thread’s message queue] (thread_t::msg_array), if any
msg_array: *mut msg_t
< memory holding messages sent to this thread’s message queue
stack_start: *mut u8
< thread’s stack start address
name: *const u8
< thread’s name
stack_size: i32
< thread’s stack size