diff options
| author | bernard.xiong <[email protected]> | 2011-09-07 06:07:15 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2011-09-07 06:07:15 +0000 |
| commit | 5aaa2b190cc557e0c4ef42f1b578bfb08b9ba6a5 (patch) | |
| tree | 5464f8df33d24a3733c6c49b689bfdea20a175d3 /src/thread.c | |
| parent | a722f6ff017980142a8ebb7af049dd2b99f9c064 (diff) | |
do a scheduling when start a thread.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1701 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src/thread.c')
| -rw-r--r-- | src/thread.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/thread.c b/src/thread.c index c9b839f0f4..cde506263d 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; } |
