diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-05-11 20:22:33 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-05-11 20:33:14 +0200 |
commit | fec776b827755a0aac17a0745bc38c2329aad5ca (patch) | |
tree | 6882496f4ff7ad8019be07746936c2cdf34f654c /nptl/pthread_getconcurrency.c | |
parent | d7c51fe4f0efd7f3ca505b5d5b3a02d5d72d9bbd (diff) | |
download | glibc-fec776b827755a0aac17a0745bc38c2329aad5ca.tar.gz glibc-fec776b827755a0aac17a0745bc38c2329aad5ca.tar.xz glibc-fec776b827755a0aac17a0745bc38c2329aad5ca.zip |
nptl: Move pthread_getconcurrency, pthread_setconcurrency into libc
The symbols were moved using scripts/move-symbol-to-libc.py, in one commit due to their dependency on the internal __concurrency_level variable. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nptl/pthread_getconcurrency.c')
-rw-r--r-- | nptl/pthread_getconcurrency.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/nptl/pthread_getconcurrency.c b/nptl/pthread_getconcurrency.c index 2ff9afa51b..387f7ffa39 100644 --- a/nptl/pthread_getconcurrency.c +++ b/nptl/pthread_getconcurrency.c @@ -17,10 +17,17 @@ <https://www.gnu.org/licenses/>. */ #include "pthreadP.h" - +#include <shlib-compat.h> int -pthread_getconcurrency (void) +__pthread_getconcurrency (void) { return __concurrency_level; } +versioned_symbol (libc, __pthread_getconcurrency, pthread_getconcurrency, + GLIBC_2_34); + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_1, GLIBC_2_34) +compat_symbol (libpthread, __pthread_getconcurrency, pthread_getconcurrency, + GLIBC_2_1); +#endif |