From 8e76594241df201aee2a204ad797c6ec0adb6bec Mon Sep 17 00:00:00 2001 From: "bernard.xiong" Date: Sun, 20 Sep 2009 23:43:51 +0000 Subject: 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 --- src/thread.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/thread.c') 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), -- cgit v1.3.1