RT-Thread RTOS  1.0.0
An open source embedded real-time operating system
rt_thread Struct Reference

#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

Detailed Description

Thread structure


Field Documentation

char rt_thread::name[RT_NAME_MAX]

the name of thread

type of object

thread's flags

id of application module

rt_list_t rt_thread::list

the object list

rt_list_t rt_thread::tlist

the thread list

stack point

entry

parameter

stack address

initialized priority

thread's initialized tick

built-in thread timer

void(* rt_thread::cleanup)(struct rt_thread *tid)

cleanup function when thread exit

private user data beyond this thread

 All Data Structures Variables