1 #ifndef _PTHREAD_H 2 #include_next <pthread.h> 3 #ifndef _ISOMAC 4 5 # define ARCH_MIN_GUARD_SIZE 0 6 7 # if defined __USE_EXTERN_INLINES && defined _LIBC && !IS_IN (libsupport) 8 # include <bits/spin-lock-inline.h> 9 10 __extern_inline int pthread_spin_destroy(pthread_spinlock_t * __lock)11pthread_spin_destroy (pthread_spinlock_t *__lock) 12 { 13 return __pthread_spin_destroy (__lock); 14 } 15 16 __extern_inline int pthread_spin_init(pthread_spinlock_t * __lock,int __pshared)17pthread_spin_init (pthread_spinlock_t *__lock, int __pshared) 18 { 19 return __pthread_spin_init (__lock, __pshared); 20 } 21 22 __extern_inline int pthread_spin_lock(pthread_spinlock_t * __lock)23pthread_spin_lock (pthread_spinlock_t *__lock) 24 { 25 return __pthread_spin_lock (__lock); 26 } 27 28 __extern_inline int pthread_spin_trylock(pthread_spinlock_t * __lock)29pthread_spin_trylock (pthread_spinlock_t *__lock) 30 { 31 return __pthread_spin_trylock (__lock); 32 } 33 34 __extern_inline int pthread_spin_unlock(pthread_spinlock_t * __lock)35pthread_spin_unlock (pthread_spinlock_t *__lock) 36 { 37 return __pthread_spin_unlock (__lock); 38 } 39 # endif 40 #endif 41 #endif 42