|
RT-Thread RTOS
1.0.0
An open source embedded real-time operating system
|
#include <rtdef.h>
Data Fields | |
| char | name [RT_NAME_MAX] |
| rt_uint8_t | type |
| rt_uint8_t | flags |
| void * | module_id |
| rt_list_t | list |
| rt_list_t | tlist |
| void * | sp |
| void * | entry |
| void * | parameter |
| void * | stack_addr |
| rt_uint16_t | stack_size |
| rt_err_t | error |
| rt_uint8_t | stat |
| rt_uint8_t | current_priority |
| rt_uint8_t | init_priority |
| rt_ubase_t | init_tick |
| rt_ubase_t | remaining_tick |
| struct rt_timer | thread_timer |
| void(* | cleanup )(struct rt_thread *tid) |
| rt_uint32_t | user_data |
Thread structure
| char rt_thread::name[RT_NAME_MAX] |
the name of thread
type of object
thread's flags
| void* rt_thread::module_id |
id of application module
| rt_list_t rt_thread::list |
the object list
| rt_list_t rt_thread::tlist |
the thread list
| void* rt_thread::sp |
stack point
| void* rt_thread::entry |
entry
| void* rt_thread::parameter |
parameter
| void* rt_thread::stack_addr |
stack address
stack size
error code
thread stat
current priority
initialized priority
thread's initialized tick
remaining tick
| struct rt_timer rt_thread::thread_timer |
built-in thread timer
| void(* rt_thread::cleanup)(struct rt_thread *tid) |
cleanup function when thread exit
private user data beyond this thread