diff options
| author | Bernard Xiong <[email protected]> | 2019-12-17 07:54:51 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-12-17 07:54:51 +0800 |
| commit | 75a3f3dd3a930eab1dc58fa0258a9d1605a0ac11 (patch) | |
| tree | 12026397ecdf3d3afa0a2abf5c33249d51186c6f /src/thread.c | |
| parent | b9052a52e7ee65ffa3ad5695d921a6c86db205ac (diff) | |
| parent | 992d3af3aee1e8567080e33e27011170f60dfab9 (diff) | |
Merge pull request #3265 from BernardXiong/comments_cleanup
[kernel] code and comments cleanup
Diffstat (limited to 'src/thread.c')
| -rw-r--r-- | src/thread.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/thread.c b/src/thread.c index c5f75a1176..7596906fae 100644 --- a/src/thread.c +++ b/src/thread.c @@ -179,7 +179,7 @@ static rt_err_t _rt_thread_init(struct rt_thread *thread, thread->cleanup = 0; thread->user_data = 0; - /* init thread timer */ + /* initialize thread timer */ rt_timer_init(&(thread->thread_timer), thread->name, rt_thread_timeout, @@ -242,7 +242,7 @@ rt_err_t rt_thread_init(struct rt_thread *thread, RT_ASSERT(thread != RT_NULL); RT_ASSERT(stack_start != RT_NULL); - /* init thread object */ + /* initialize thread object */ rt_object_init((rt_object_t)thread, RT_Object_Class_Thread, name); return _rt_thread_init(thread, @@ -293,7 +293,7 @@ rt_err_t rt_thread_startup(rt_thread_t thread) RT_ASSERT((thread->stat & RT_THREAD_STAT_MASK) == RT_THREAD_INIT); RT_ASSERT(rt_object_get_type((rt_object_t)thread) == RT_Object_Class_Thread); - /* set current priority to init priority */ + /* set current priority to initialize priority */ thread->current_priority = thread->init_priority; /* calculate priority attribute */ |
