mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
htl: thread_local destructors support
This commit is contained in:
parent
d2123d6827
commit
89ade8d8cb
@ -46,6 +46,12 @@ __pthread_exit (void *status)
|
||||
*handlers = (*handlers)->__next)
|
||||
(*handlers)->__handler ((*handlers)->__arg);
|
||||
|
||||
/* Call destructors for the thread_local TLS variables. */
|
||||
#ifndef SHARED
|
||||
if (&__call_tls_dtors != NULL)
|
||||
#endif
|
||||
__call_tls_dtors ();
|
||||
|
||||
__pthread_setcancelstate (oldstate, &oldstate);
|
||||
|
||||
/* Decrease the number of threads. We use an atomic operation to
|
||||
|
Loading…
Reference in New Issue
Block a user