4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-19 03:01:22 +08:00

initial cleanup function of thread to zero.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1070 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong@gmail.com 2010-11-20 15:18:39 +00:00
parent 5a600125ec
commit 15f07a3e68

View File

@ -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 */