mirror of
https://sourceware.org/git/glibc.git
synced 2026-01-06 11:51:29 +03:00
nptl: Move thread join functions into libc
The symbols pthread_clockjoin_np, pthread_join, pthread_timedjoin_np, pthread_tryjoin_np, thrd_join were moved using scripts/move-symbol-to-libc.py. Moving the symbols at the same time avoids the need for temporary exports. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
@@ -17,9 +17,10 @@
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#include "pthreadP.h"
|
||||
#include <shlib-compat.h>
|
||||
|
||||
int
|
||||
pthread_tryjoin_np (pthread_t threadid, void **thread_return)
|
||||
__pthread_tryjoin_np (pthread_t threadid, void **thread_return)
|
||||
{
|
||||
/* Return right away if the thread hasn't terminated yet. */
|
||||
struct pthread *pd = (struct pthread *) threadid;
|
||||
@@ -31,3 +32,8 @@ pthread_tryjoin_np (pthread_t threadid, void **thread_return)
|
||||
return __pthread_clockjoin_ex (threadid, thread_return, 0 /* Ignored */,
|
||||
NULL, false);
|
||||
}
|
||||
versioned_symbol (libc, __pthread_tryjoin_np, pthread_tryjoin_np, GLIBC_2_34);
|
||||
|
||||
#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_3_3, GLIBC_2_34)
|
||||
compat_symbol (libc, __pthread_tryjoin_np, pthread_tryjoin_np, GLIBC_2_3_3);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user