diff options
| author | xiangxistu <[email protected]> | 2022-08-08 11:16:17 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-08-07 23:16:17 -0400 |
| commit | e61d05ca1a9e6b8a83c928ab1f893246629bbd2f (patch) | |
| tree | 969c06f626d801311ea827bdd0c0e0bea878e7ef /include/rtdef.h | |
| parent | 79934777d04eddc54f6e608398091aaef6cc2aa4 (diff) | |
[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".
Diffstat (limited to 'include/rtdef.h')
| -rw-r--r-- | include/rtdef.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index 94c2466f0b..0de2c22ec4 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -690,9 +690,13 @@ struct rt_thread rt_ubase_t remaining_tick; /**< remaining tick */ #ifdef RT_USING_CPU_USAGE - rt_uint64_t duration_tick; /**< cpu usage tick */ + rt_uint64_t duration_tick; /**< cpu usage tick */ #endif /* RT_USING_CPU_USAGE */ +#ifdef RT_USING_PTHREADS + void *pthread_data; /**< the handle of pthread data, adapt 32/64bit */ +#endif /* RT_USING_PTHREADS */ + struct rt_timer thread_timer; /**< built-in thread timer */ void (*cleanup)(struct rt_thread *tid); /**< cleanup function when thread exit */ |
