소스 검색

do a scheduling when start a thread.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1701 bbd45198-f89e-11dd-88c7-29a3b14d5316
bernard.xiong 14 년 전
부모
커밋
5aaa2b190c
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/thread.c

+ 2 - 0
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;
 }