diff --git a/src/thread.c b/src/thread.c index c9b839f0f4926d38c4717904c4d170c57e093483..cde506263dbd701bcf750a24da63e750520dc053 100644 --- a/src/thread.c +++ b/src/thread.c @@ -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; }