RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
载入中...
搜索中...
未找到
thread.c 文件参考
#include <rthw.h>
#include <rtthread.h>
#include <stddef.h>
#include <rtdbg.h>
+ thread.c 的引用(Include)关系图:

浏览该文件的源代码.

宏定义

#define DBG_TAG   "kernel.thread"
 
#define DBG_LVL   DBG_INFO
 

函数

rt_err_t rt_thread_init (struct rt_thread *thread, const char *name, void(*entry)(void *parameter), void *parameter, void *stack_start, rt_uint32_t stack_size, rt_uint8_t priority, rt_uint32_t tick)
 
 RTM_EXPORT (rt_thread_init)
 
rt_thread_t rt_thread_self (void)
 
 RTM_EXPORT (rt_thread_self)
 
rt_err_t rt_thread_startup (rt_thread_t thread)
 
 RTM_EXPORT (rt_thread_startup)
 
rt_err_t rt_thread_close (rt_thread_t thread)
 
 RTM_EXPORT (rt_thread_close)
 
rt_err_t rt_thread_detach (rt_thread_t thread)
 
 RTM_EXPORT (rt_thread_detach)
 
rt_thread_t rt_thread_create (const char *name, void(*entry)(void *parameter), void *parameter, rt_uint32_t stack_size, rt_uint8_t priority, rt_uint32_t tick)
 
 RTM_EXPORT (rt_thread_create)
 
rt_err_t rt_thread_delete (rt_thread_t thread)
 
 RTM_EXPORT (rt_thread_delete)
 
rt_err_t rt_thread_yield (void)
 
 RTM_EXPORT (rt_thread_yield)
 
rt_err_t rt_thread_delay (rt_tick_t tick)
 
 RTM_EXPORT (rt_thread_delay)
 
rt_err_t rt_thread_delay_until (rt_tick_t *tick, rt_tick_t inc_tick)
 
 RTM_EXPORT (rt_thread_delay_until)
 
rt_err_t rt_thread_mdelay (rt_int32_t ms)
 
 RTM_EXPORT (rt_thread_mdelay)
 
rt_err_t rt_thread_control (rt_thread_t thread, int cmd, void *arg)
 
 RTM_EXPORT (rt_thread_control)
 
rt_err_t rt_thread_suspend_to_list (rt_thread_t thread, rt_list_t *susp_list, int ipc_flags, int suspend_flag)
 
 RTM_EXPORT (rt_thread_suspend_to_list)
 
rt_err_t rt_thread_suspend_with_flag (rt_thread_t thread, int suspend_flag)
 
 RTM_EXPORT (rt_thread_suspend_with_flag)
 
rt_err_t rt_thread_suspend (rt_thread_t thread)
 
 RTM_EXPORT (rt_thread_suspend)
 
rt_err_t rt_thread_resume (rt_thread_t thread)
 
 RTM_EXPORT (rt_thread_resume)
 
rt_thread_t rt_thread_find (char *name)
 
 RTM_EXPORT (rt_thread_find)
 
rt_err_t rt_thread_get_name (rt_thread_t thread, char *name, rt_uint8_t name_size)
 
 RTM_EXPORT (rt_thread_get_name)
 

宏定义说明

◆ DBG_TAG

#define DBG_TAG   "kernel.thread"

在文件 thread.c44 行定义.

◆ DBG_LVL

#define DBG_LVL   DBG_INFO

在文件 thread.c45 行定义.