mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
nptl: Move __pthread_cleanup_routine into libc
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
@ -17,11 +17,18 @@
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
#include <shlib-compat.h>
|
||||
|
||||
void
|
||||
__pthread_cleanup_routine (struct __pthread_cleanup_frame *f)
|
||||
___pthread_cleanup_routine (struct __pthread_cleanup_frame *f)
|
||||
{
|
||||
if (f->__do_it)
|
||||
f->__cancel_routine (f->__cancel_arg);
|
||||
}
|
||||
versioned_symbol (libc, ___pthread_cleanup_routine, __pthread_cleanup_routine,
|
||||
GLIBC_2_34);
|
||||
|
||||
#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_3_3, GLIBC_2_34)
|
||||
compat_symbol (libpthread, ___pthread_cleanup_routine,
|
||||
__pthread_cleanup_routine, GLIBC_2_3_3);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user