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

#include <rtdef.h>

Data Fields

void * sp
 
void * entry
 
void * parameter
 
void * stack_addr
 
rt_uint32_t stack_size
 
rt_err_t error
 
RT_SCHED_THREAD_CTX struct rt_timer thread_timer
 
rt_thread_cleanup_t cleanup
 
rt_ubase_t user_data
 

Detailed Description

Thread structure

Field Documentation

◆ sp

void* rt_thread::sp

stack point

◆ entry

void* rt_thread::entry

entry

◆ parameter

void* rt_thread::parameter

parameter

◆ stack_addr

void* rt_thread::stack_addr

stack address

◆ stack_size

rt_uint32_t rt_thread::stack_size

stack size

◆ error

rt_err_t rt_thread::error

error code

◆ thread_timer

RT_SCHED_THREAD_CTX struct rt_timer rt_thread::thread_timer

built-in thread timer

◆ cleanup

rt_thread_cleanup_t rt_thread::cleanup

cleanup function when thread exit

◆ user_data

rt_ubase_t rt_thread::user_data

private user data beyond this thread