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:
@@ -18,14 +18,14 @@
|
||||
|
||||
#include <errno.h>
|
||||
#include "pthreadP.h"
|
||||
|
||||
#include <shlib-compat.h>
|
||||
|
||||
/* Global definition. Needed in pthread_getconcurrency as well. */
|
||||
int __concurrency_level;
|
||||
|
||||
|
||||
int
|
||||
pthread_setconcurrency (int level)
|
||||
__pthread_setconcurrency (int level)
|
||||
{
|
||||
if (level < 0)
|
||||
return EINVAL;
|
||||
@@ -37,3 +37,10 @@ pthread_setconcurrency (int level)
|
||||
|
||||
return 0;
|
||||
}
|
||||
versioned_symbol (libc, __pthread_setconcurrency, pthread_setconcurrency,
|
||||
GLIBC_2_34);
|
||||
|
||||
#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_1, GLIBC_2_34)
|
||||
compat_symbol (libpthread, __pthread_setconcurrency, pthread_setconcurrency,
|
||||
GLIBC_2_1);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user