RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
|
结构体 | |
struct | rt_sched_thread_priv |
struct | rt_sched_thread_ctx |
宏定义 | |
#define | RT_SCHED_THREAD_CTX struct rt_sched_thread_ctx sched_thread_ctx; |
#define | RT_SCHED_PRIV(thread) |
#define | RT_SCHED_CTX(thread) |
#define | RT_THREAD_LIST_NODE_ENTRY(node) |
#define | RT_THREAD_LIST_NODE(thread) |
#define | RT_SCHED_DEBUG_IS_LOCKED |
#define | RT_SCHED_DEBUG_IS_UNLOCKED |
类型定义 | |
typedef rt_uint8_t | rt_sched_thread_status_t |
typedef rt_ubase_t | rt_sched_lock_level_t |
函数 | |
rt_err_t | rt_sched_lock (rt_sched_lock_level_t *plvl) |
rt_err_t | rt_sched_unlock (rt_sched_lock_level_t level) |
rt_err_t | rt_sched_unlock_n_resched (rt_sched_lock_level_t level) |
rt_bool_t | rt_sched_is_locked (void) |
#define RT_SCHED_THREAD_CTX struct rt_sched_thread_ctx sched_thread_ctx; |
#define RT_SCHED_PRIV | ( | thread | ) |
#define RT_THREAD_LIST_NODE_ENTRY | ( | node | ) |
Convert a list node in container RT_SCHED_CTX(thread)->thread_list_node to a thread pointer.
#define RT_THREAD_LIST_NODE | ( | thread | ) |
typedef rt_uint8_t rt_sched_thread_status_t |
typedef rt_ubase_t rt_sched_lock_level_t |
rt_err_t rt_sched_lock | ( | rt_sched_lock_level_t * | plvl | ) |
在文件 scheduler_up.c 第 110 行定义.
引用了 rt_hw_interrupt_disable().
rt_err_t rt_sched_unlock | ( | rt_sched_lock_level_t | level | ) |
在文件 scheduler_up.c 第 122 行定义.
rt_err_t rt_sched_unlock_n_resched | ( | rt_sched_lock_level_t | level | ) |
在文件 scheduler_up.c 第 129 行定义.
引用了 rt_hw_interrupt_enable(), rt_schedule() , 以及 rt_thread_self().
rt_bool_t rt_sched_is_locked | ( | void | ) |