Type Alias riot_sys::thread_t

source ·
pub type thread_t = _thread;
Expand description

@brief @c thread_t holds thread’s context data.

Aliased Type§

struct thread_t {
Show 13 fields pub sp: *mut u8, pub status: u8, pub priority: u8, pub pid: i16, pub flags: u16, pub rq_entry: list_node, pub wait_data: *mut c_void, pub msg_waiters: list_node, pub msg_queue: cib_t, pub msg_array: *mut msg_t, pub stack_start: *mut u8, pub name: *const u8, pub stack_size: i32,
}

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