Home
last modified time | relevance | path

Searched refs:from_thread (Results 1 – 2 of 2) sorted by relevance

/src/
A Dscheduler_up.c283 struct rt_thread *from_thread; in rt_schedule() local
323 from_thread = curr_thread; in rt_schedule()
326 RT_OBJECT_HOOK_CALL(rt_scheduler_hook, (from_thread, to_thread)); in rt_schedule()
330 rt_sched_insert_thread(from_thread); in rt_schedule()
333 if ((RT_SCHED_CTX(from_thread).stat & RT_THREAD_STAT_YIELD_MASK) != 0) in rt_schedule()
335 RT_SCHED_CTX(from_thread).stat &= ~RT_THREAD_STAT_YIELD_MASK; in rt_schedule()
347 RT_NAME_MAX, from_thread->parent.name, from_thread->sp); in rt_schedule()
355 RT_OBJECT_HOOK_CALL(rt_scheduler_switch_hook, (from_thread)); in rt_schedule()
357 rt_hw_context_switch((rt_uintptr_t)&from_thread->sp, in rt_schedule()
388 rt_hw_context_switch_interrupt((rt_uintptr_t)&from_thread->sp, in rt_schedule()
[all …]
A Dscheduler_mp.c1187 rt_thread_t from_thread = pcpu->current_thread; in rt_sched_post_ctx_switch() local
1191 if (from_thread) in rt_sched_post_ctx_switch()
1193 RT_ASSERT(RT_SCHED_CTX(from_thread).critical_lock_nest == 1); in rt_sched_post_ctx_switch()
1196 RT_SCHED_CTX(from_thread).critical_lock_nest = 0; in rt_sched_post_ctx_switch()

Completed in 8 milliseconds