diff options
| author | bernard.xiong <[email protected]> | 2009-09-20 23:43:51 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2009-09-20 23:43:51 +0000 |
| commit | 8e76594241df201aee2a204ad797c6ec0adb6bec (patch) | |
| tree | c99d24c95fd68864d5ebd12664144a9186b1c1b8 /src/thread.c | |
| parent | 04234d1821be9b5686dd661a448270f2092ae05d (diff) | |
convert dos endline to unix endline; cleanup schedule code for STM32
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@49 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src/thread.c')
| -rw-r--r-- | src/thread.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/thread.c b/src/thread.c index b8ab0fb641..53f6cbf6b0 100644 --- a/src/thread.c +++ b/src/thread.c @@ -60,7 +60,7 @@ static rt_err_t _rt_thread_init(struct rt_thread* thread, (void *) ((char *)thread->stack_addr + thread->stack_size - 4), (void*)rt_thread_exit); - /* priority init */
+ /* priority init */ RT_ASSERT(priority < RT_THREAD_PRIORITY_MAX); thread->init_priority = priority; thread->current_priority = priority; @@ -74,13 +74,13 @@ static rt_err_t _rt_thread_init(struct rt_thread* thread, thread->stat = RT_THREAD_INIT; thread->flags = 0; -#ifdef RT_USING_MODULE
- /* init module parent */
- thread->module_parent = RT_NULL;
+#ifdef RT_USING_MODULE + /* init module parent */ + thread->module_parent = RT_NULL; #endif - /* init user data */
- thread->user_data = 0;
+ /* init user data */ + thread->user_data = 0; /* init thread timer */ rt_timer_init(&(thread->thread_timer), |
