提交 898e0d2f 编写于 作者: B bernard

[Kernel] stop thread timer when suspend a thread

上级 6cab3b7d
......@@ -575,6 +575,9 @@ rt_err_t rt_thread_suspend(rt_thread_t thread)
thread->stat = RT_THREAD_SUSPEND;
rt_schedule_remove_thread(thread);
/* stop thread timer anyway */
rt_timer_stop(&(thread->thread_timer));
/* enable interrupt */
rt_hw_interrupt_enable(temp);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册