Lines Matching refs:thread

73 #define RT_SCHED_PRIV(thread) ((thread)->sched_thread_ctx.sched_thread_priv)  argument
74 #define RT_SCHED_CTX(thread) ((thread)->sched_thread_ctx) argument
84 #define RT_THREAD_LIST_NODE(thread) (RT_SCHED_CTX(thread).thread_list_node) argument
115 void rt_sched_thread_init_ctx(struct rt_thread *thread, rt_uint32_t tick, rt_uint8_t priority);
116 void rt_sched_thread_init_priv(struct rt_thread *thread, rt_uint32_t tick, rt_uint8_t priority);
117 void rt_sched_thread_startup(struct rt_thread *thread);
120 void rt_sched_post_ctx_switch(struct rt_thread *thread);
124 rt_uint8_t rt_sched_thread_get_stat(struct rt_thread *thread);
125 rt_uint8_t rt_sched_thread_get_curr_prio(struct rt_thread *thread);
126 rt_uint8_t rt_sched_thread_get_init_prio(struct rt_thread *thread);
127 rt_err_t rt_sched_thread_yield(struct rt_thread *thread);
128 rt_err_t rt_sched_thread_close(struct rt_thread *thread);
129 rt_err_t rt_sched_thread_ready(struct rt_thread *thread);
130 rt_err_t rt_sched_thread_suspend(struct rt_thread *thread, rt_sched_lock_level_t level);
131 rt_err_t rt_sched_thread_change_priority(struct rt_thread *thread, rt_uint8_t priority);
132 rt_err_t rt_sched_thread_reset_priority(struct rt_thread *thread, rt_uint8_t priority);
133 rt_err_t rt_sched_thread_bind_cpu(struct rt_thread *thread, int cpu);
134 rt_uint8_t rt_sched_thread_is_suspended(struct rt_thread *thread);
135 rt_err_t rt_sched_thread_timer_stop(struct rt_thread *thread);
136 rt_err_t rt_sched_thread_timer_start(struct rt_thread *thread);
137 void rt_sched_insert_thread(struct rt_thread *thread);
138 void rt_sched_remove_thread(struct rt_thread *thread);