70 |
return __spin_try_lock (__lock) ? 0 : __EBUSY; |
return __spin_try_lock (__lock) ? 0 : __EBUSY; |
71 |
} |
} |
72 |
|
|
73 |
extern inline int __pthread_spin_lock (__pthread_spinlock_t *__lock); |
extern __inline int __pthread_spin_lock (__pthread_spinlock_t *__lock); |
74 |
extern int _pthread_spin_lock (__pthread_spinlock_t *__lock); |
extern int _pthread_spin_lock (__pthread_spinlock_t *__lock); |
75 |
|
|
76 |
extern inline int |
extern __inline int |
77 |
__pthread_spin_lock (__pthread_spinlock_t *__lock) |
__pthread_spin_lock (__pthread_spinlock_t *__lock) |
78 |
{ |
{ |
79 |
if (__pthread_spin_trylock (__lock)) |
if (__pthread_spin_trylock (__lock)) |