2020-02-09 16:34:26 +00:00
|
|
|
#ifndef _PTHREAD_H
|
|
|
|
#include_next <pthread.h>
|
2020-02-09 16:41:24 +00:00
|
|
|
#ifndef _ISOMAC
|
2021-05-20 16:55:26 +00:00
|
|
|
|
|
|
|
# define ARCH_MIN_GUARD_SIZE 0
|
|
|
|
|
2022-01-17 23:18:20 +00:00
|
|
|
# if defined __USE_EXTERN_INLINES && defined _LIBC
|
|
|
|
# if !IS_IN (libsupport)
|
|
|
|
# include <bits/spin-lock-inline.h>
|
2020-02-09 16:34:26 +00:00
|
|
|
|
|
|
|
__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);
|
|
|
|
}
|
2022-01-17 23:18:20 +00:00
|
|
|
# endif
|
2020-02-09 16:41:24 +00:00
|
|
|
# endif
|
2020-02-09 16:34:26 +00:00
|
|
|
#endif
|
|
|
|
#endif
|