mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-20 00:45:22 +08:00
[fix] the risk for function exit() when open pthread support. (#6229)
* [fix] the risk for function exit() when open pthread support. * [update] modify annotation from "user data" to "pthread_data".
This commit is contained in:
@@ -252,6 +252,10 @@ static rt_err_t _thread_init(struct rt_thread *thread,
|
||||
thread->duration_tick = 0;
|
||||
#endif /* RT_USING_CPU_USAGE */
|
||||
|
||||
#ifdef RT_USING_PTHREADS
|
||||
thread->pthread_data = RT_NULL;
|
||||
#endif /* RT_USING_PTHREADS */
|
||||
|
||||
#ifdef RT_USING_MODULE
|
||||
thread->module_id = 0;
|
||||
#endif /* RT_USING_MODULE */
|
||||
|
||||
Reference in New Issue
Block a user