diff options
| author | dzzxzz <[email protected]> | 2011-09-23 05:57:31 +0000 |
|---|---|---|
| committer | dzzxzz <[email protected]> | 2011-09-23 05:57:31 +0000 |
| commit | 7926109356581168f33aa4908052c6871c0ff8e0 (patch) | |
| tree | 270149d2a27f80304562baf28f218c6d4f49f37d /src/thread.c | |
| parent | 2ab9a1602e40a2096cf620dbd3168090232cc10d (diff) | |
cleanup kernel code
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1722 bbd45198-f89e-11dd-88c7-29a3b14d5316
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 92ea9d4595..f4b04e3440 100644 --- a/src/thread.c +++ b/src/thread.c @@ -142,7 +142,7 @@ rt_err_t rt_thread_init(struct rt_thread *thread, * @return the created thread object * */ -rt_thread_t rt_thread_create (const char *name, +rt_thread_t rt_thread_create(const char *name, void (*entry)(void *parameter), void *parameter, rt_uint32_t stack_size, rt_uint8_t priority, @@ -151,7 +151,7 @@ rt_thread_t rt_thread_create (const char *name, struct rt_thread *thread; void *stack_start; - thread = (struct rt_thread *) rt_object_allocate(RT_Object_Class_Thread, name); + thread = (struct rt_thread *)rt_object_allocate(RT_Object_Class_Thread, name); if (thread == RT_NULL) return RT_NULL; stack_start = (void *)rt_malloc(stack_size); @@ -603,7 +603,7 @@ rt_err_t rt_thread_resume(rt_thread_t thread) /** * This function is the timeout function for thread, normally which is invoked - * when thread is timeout to wait some recourse. + * when thread is timeout to wait some resourse. * * @param parameter the parameter of thread timeout function * |
