diff options
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), |
