mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 12:33:27 +08:00
move task tls destruct to before _exit
Signed-off-by: chenxiaoyi <chenxiaoyi@xiaomi.com>
This commit is contained in:
@@ -108,6 +108,10 @@ void exit(int status)
|
||||
|
||||
atexit_call_exitfuncs(status, false);
|
||||
|
||||
#if defined(CONFIG_TLS_TASK_NELEM) && CONFIG_TLS_TASK_NELEM > 0
|
||||
task_tls_destruct();
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_FILE_STREAM
|
||||
/* Flush all streams */
|
||||
|
||||
|
||||
@@ -128,10 +128,6 @@ static void group_remove(FAR struct task_group_s *group)
|
||||
|
||||
static inline void group_release(FAR struct task_group_s *group)
|
||||
{
|
||||
#if defined(CONFIG_TLS_TASK_NELEM) && CONFIG_TLS_TASK_NELEM > 0
|
||||
task_tls_destruct();
|
||||
#endif
|
||||
|
||||
task_uninit_info(group);
|
||||
|
||||
#if defined(CONFIG_SCHED_HAVE_PARENT) && defined(CONFIG_SCHED_CHILD_STATUS)
|
||||
|
||||
Reference in New Issue
Block a user