From 5aaa2b190cc557e0c4ef42f1b578bfb08b9ba6a5 Mon Sep 17 00:00:00 2001 From: "bernard.xiong" Date: Wed, 7 Sep 2011 06:07:15 +0000 Subject: [PATCH] do a scheduling when start a thread. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1701 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- src/thread.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/thread.c b/src/thread.c index c9b839f0f..cde506263 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; } -- GitLab