1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00

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>
This commit is contained in:
Florian Weimer
2021-05-11 20:22:33 +02:00
parent d7c51fe4f0
commit fec776b827
65 changed files with 152 additions and 66 deletions

View File

@@ -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