mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
nptl: Add internal alias __pthread_getattr_default_np
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
@ -61,6 +61,7 @@ libc {
|
|||||||
__pthread_attr_setaffinity_np;
|
__pthread_attr_setaffinity_np;
|
||||||
__pthread_attr_init; __pthread_attr_destroy;
|
__pthread_attr_init; __pthread_attr_destroy;
|
||||||
__pthread_attr_copy;
|
__pthread_attr_copy;
|
||||||
|
__pthread_getattr_default_np;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -437,6 +437,8 @@ extern int __pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr,
|
|||||||
size_t __stacksize);
|
size_t __stacksize);
|
||||||
int __pthread_attr_setaffinity_np (pthread_attr_t *, size_t, const cpu_set_t *);
|
int __pthread_attr_setaffinity_np (pthread_attr_t *, size_t, const cpu_set_t *);
|
||||||
libc_hidden_proto (__pthread_attr_setaffinity_np)
|
libc_hidden_proto (__pthread_attr_setaffinity_np)
|
||||||
|
extern __typeof (pthread_getattr_default_np) __pthread_getattr_default_np;
|
||||||
|
libpthread_hidden_proto (__pthread_getattr_default_np)
|
||||||
extern int __pthread_rwlock_init (pthread_rwlock_t *__restrict __rwlock,
|
extern int __pthread_rwlock_init (pthread_rwlock_t *__restrict __rwlock,
|
||||||
const pthread_rwlockattr_t *__restrict
|
const pthread_rwlockattr_t *__restrict
|
||||||
__attr);
|
__attr);
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
#include <pthreadP.h>
|
#include <pthreadP.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
pthread_getattr_default_np (pthread_attr_t *out)
|
__pthread_getattr_default_np (pthread_attr_t *out)
|
||||||
{
|
{
|
||||||
lll_lock (__default_pthread_attr_lock, LLL_PRIVATE);
|
lll_lock (__default_pthread_attr_lock, LLL_PRIVATE);
|
||||||
int ret = __pthread_attr_copy (out,
|
int ret = __pthread_attr_copy (out,
|
||||||
@ -27,3 +27,5 @@ pthread_getattr_default_np (pthread_attr_t *out)
|
|||||||
lll_unlock (__default_pthread_attr_lock, LLL_PRIVATE);
|
lll_unlock (__default_pthread_attr_lock, LLL_PRIVATE);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
libpthread_hidden_def (__pthread_getattr_default_np)
|
||||||
|
weak_alias (__pthread_getattr_default_np, pthread_getattr_default_np)
|
||||||
|
Reference in New Issue
Block a user