diff options
Diffstat (limited to 'src/thread.c')
| -rw-r--r-- | src/thread.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/thread.c b/src/thread.c index eea42dab8e..f840fdd231 100644 --- a/src/thread.c +++ b/src/thread.c @@ -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 */ |
