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
8 # if !IS_IN (libsupport)
9 # include <bits/spin-lock-inline.h>
10
11 __extern_inline int
12 pthread_spin_destroy (pthread_spinlock_t *__lock)
13 {
14 return __pthread_spin_destroy (__lock);
15 }
16
17 __extern_inline int
18 pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
19 {
20 return __pthread_spin_init (__lock, __pshared);
21 }
22
23 __extern_inline int
24 pthread_spin_lock (pthread_spinlock_t *__lock)
25 {
26 return __pthread_spin_lock (__lock);
27 }
28
29 __extern_inline int
30 pthread_spin_trylock (pthread_spinlock_t *__lock)
31 {
32 return __pthread_spin_trylock (__lock);
33 }
34
35 __extern_inline int
36 pthread_spin_unlock (pthread_spinlock_t *__lock)
37 {
38 return __pthread_spin_unlock (__lock);
39 }
40 # endif
41 # endif
42 #endif
43 #endif