summaryrefslogtreecommitdiff
path: root/src/thread.c
diff options
context:
space:
mode:
author[email protected] <[email protected]>2010-11-20 15:18:39 +0000
committer[email protected] <[email protected]>2010-11-20 15:18:39 +0000
commit15f07a3e68b2297da430392ce53956619775b644 (patch)
treeddeb9e8f843762baa03c20cc241cb007166c75ef /src/thread.c
parent5a600125ec12eb451586e7ba2bcaa6119d1514e6 (diff)
initial cleanup function of thread to zero.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1070 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src/thread.c')
-rw-r--r--src/thread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/thread.c b/src/thread.c
index 32471bad3f..544a295eaa 100644
--- a/src/thread.c
+++ b/src/thread.c
@@ -74,7 +74,8 @@ static rt_err_t _rt_thread_init(struct rt_thread* thread,
thread->error = RT_EOK;
thread->stat = RT_THREAD_INIT;
- /* init user data */
+ /* initialize cleanup function and user data */
+ thread->cleanup = 0;
thread->user_data = 0;
/* init thread timer */