Revert "tls: Move pthread key destructor to libc"

This reverts commit cc514d7791.

* It introduced a regression.
  https://github.com/apache/incubator-nuttx/issues/3868

* It seems conceptually wrong to have per-process data in
  the main thread's stack.
This commit is contained in:
YAMAMOTO Takashi
2021-06-09 15:53:23 +09:00
committed by Xiang Xiao
parent 8079d9fac3
commit b3e8535ad6
14 changed files with 97 additions and 116 deletions
+5
View File
@@ -177,6 +177,11 @@
"timer_getoverrun","time.h","!defined(CONFIG_DISABLE_POSIX_TIMERS)","int","timer_t"
"timer_gettime","time.h","!defined(CONFIG_DISABLE_POSIX_TIMERS)","int","timer_t","FAR struct itimerspec *"
"timer_settime","time.h","!defined(CONFIG_DISABLE_POSIX_TIMERS)","int","timer_t","int","FAR const struct itimerspec *","FAR struct itimerspec *"
"tls_alloc","nuttx/tls.h","CONFIG_TLS_NELEM > 0","int"
"tls_free","nuttx/tls.h","CONFIG_TLS_NELEM > 0","int","int"
"tls_get_dtor","nuttx/tls.h","CONFIG_TLS_NELEM > 0","tls_dtor_t","int"
"tls_get_set","nuttx/tls.h","CONFIG_TLS_NELEM > 0","tls_ndxset_t"
"tls_set_dtor","nuttx/tls.h","CONFIG_TLS_NELEM > 0","int","int","tls_dtor_t"
"umount2","sys/mount.h","!defined(CONFIG_DISABLE_MOUNTPOINT)","int","FAR const char *","unsigned int"
"unlink","unistd.h","!defined(CONFIG_DISABLE_MOUNTPOINT)","int","FAR const char *"
"unsetenv","stdlib.h","!defined(CONFIG_DISABLE_ENVIRON)","int","FAR const char *"
1 _exit unistd.h noreturn int
177 timer_getoverrun time.h !defined(CONFIG_DISABLE_POSIX_TIMERS) int timer_t
178 timer_gettime time.h !defined(CONFIG_DISABLE_POSIX_TIMERS) int timer_t
179 timer_settime time.h !defined(CONFIG_DISABLE_POSIX_TIMERS) int timer_t
180 tls_alloc nuttx/tls.h CONFIG_TLS_NELEM > 0 int
181 tls_free nuttx/tls.h CONFIG_TLS_NELEM > 0 int int
182 tls_get_dtor nuttx/tls.h CONFIG_TLS_NELEM > 0 tls_dtor_t int
183 tls_get_set nuttx/tls.h CONFIG_TLS_NELEM > 0 tls_ndxset_t
184 tls_set_dtor nuttx/tls.h CONFIG_TLS_NELEM > 0 int int
185 umount2 sys/mount.h !defined(CONFIG_DISABLE_MOUNTPOINT) int FAR const char *
186 unlink unistd.h !defined(CONFIG_DISABLE_MOUNTPOINT) int FAR const char *
187 unsetenv stdlib.h !defined(CONFIG_DISABLE_ENVIRON) int FAR const char *