mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-15 01:21:06 +00:00
htl: Do not put spin_lock inlines in public headers
They were not getting used anyway. Also do not make libsupport use them, it would make tests using it have to be made to link against libmachuser for gsync_wait.
This commit is contained in:
parent
cca76b6db2
commit
865bf71109
36
sysdeps/htl/include/pthread.h
Normal file
36
sysdeps/htl/include/pthread.h
Normal file
@ -0,0 +1,36 @@
|
||||
#ifndef _PTHREAD_H
|
||||
#include_next <pthread.h>
|
||||
#if defined __USE_EXTERN_INLINES && defined _LIBC && !IS_IN (libsupport)
|
||||
# include <bits/spin-lock-inline.h>
|
||||
|
||||
__extern_inline int
|
||||
pthread_spin_destroy (pthread_spinlock_t *__lock)
|
||||
{
|
||||
return __pthread_spin_destroy (__lock);
|
||||
}
|
||||
|
||||
__extern_inline int
|
||||
pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
|
||||
{
|
||||
return __pthread_spin_init (__lock, __pshared);
|
||||
}
|
||||
|
||||
__extern_inline int
|
||||
pthread_spin_lock (pthread_spinlock_t *__lock)
|
||||
{
|
||||
return __pthread_spin_lock (__lock);
|
||||
}
|
||||
|
||||
__extern_inline int
|
||||
pthread_spin_trylock (pthread_spinlock_t *__lock)
|
||||
{
|
||||
return __pthread_spin_trylock (__lock);
|
||||
}
|
||||
|
||||
__extern_inline int
|
||||
pthread_spin_unlock (pthread_spinlock_t *__lock)
|
||||
{
|
||||
return __pthread_spin_unlock (__lock);
|
||||
}
|
||||
#endif
|
||||
#endif
|
@ -549,42 +549,6 @@ extern int pthread_spin_trylock (pthread_spinlock_t *__lock)
|
||||
extern int pthread_spin_unlock (pthread_spinlock_t *__lock)
|
||||
__nonnull ((1));
|
||||
|
||||
# if defined __USE_EXTERN_INLINES && defined _LIBC
|
||||
|
||||
# include <bits/spin-lock-inline.h>
|
||||
|
||||
__extern_inline int
|
||||
pthread_spin_destroy (pthread_spinlock_t *__lock)
|
||||
{
|
||||
return __pthread_spin_destroy (__lock);
|
||||
}
|
||||
|
||||
__extern_inline int
|
||||
pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
|
||||
{
|
||||
return __pthread_spin_init (__lock, __pshared);
|
||||
}
|
||||
|
||||
__extern_inline int
|
||||
pthread_spin_lock (pthread_spinlock_t *__lock)
|
||||
{
|
||||
return __pthread_spin_lock (__lock);
|
||||
}
|
||||
|
||||
__extern_inline int
|
||||
pthread_spin_trylock (pthread_spinlock_t *__lock)
|
||||
{
|
||||
return __pthread_spin_trylock (__lock);
|
||||
}
|
||||
|
||||
__extern_inline int
|
||||
pthread_spin_unlock (pthread_spinlock_t *__lock)
|
||||
{
|
||||
return __pthread_spin_unlock (__lock);
|
||||
}
|
||||
|
||||
# endif /* Use extern inlines. */
|
||||
|
||||
#endif /* XPG6. */
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user