提交 5aaa2b19 编写于 作者: B bernard.xiong

do a scheduling when start a thread.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1701 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 a722f6ff
......@@ -213,6 +213,8 @@ rt_err_t rt_thread_startup (rt_thread_t thread)
thread->stat = RT_THREAD_SUSPEND;
/* then resume it */
rt_thread_resume(thread);
/* do a scheduling */
rt_schedule();
return RT_EOK;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册