74 |
return __locked ? __EBUSY : 0; |
return __locked ? __EBUSY : 0; |
75 |
} |
} |
76 |
|
|
77 |
extern inline int __pthread_spin_lock (__pthread_spinlock_t *__lock); |
extern __inline int __pthread_spin_lock (__pthread_spinlock_t *__lock); |
78 |
extern int _pthread_spin_lock (__pthread_spinlock_t *__lock); |
extern int _pthread_spin_lock (__pthread_spinlock_t *__lock); |
79 |
|
|
80 |
extern inline int |
extern __inline int |
81 |
__pthread_spin_lock (__pthread_spinlock_t *__lock) |
__pthread_spin_lock (__pthread_spinlock_t *__lock) |
82 |
{ |
{ |
83 |
if (__pthread_spin_trylock (__lock)) |
if (__pthread_spin_trylock (__lock)) |