diff options
Diffstat (limited to 'sysdeps/mach/htl/bits/spin-lock-inline.h')
-rw-r--r-- | sysdeps/mach/htl/bits/spin-lock-inline.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sysdeps/mach/htl/bits/spin-lock-inline.h b/sysdeps/mach/htl/bits/spin-lock-inline.h index 556bdd4c28..006b6fd5f2 100644 --- a/sysdeps/mach/htl/bits/spin-lock-inline.h +++ b/sysdeps/mach/htl/bits/spin-lock-inline.h @@ -71,6 +71,15 @@ __pthread_spin_lock (__pthread_spinlock_t *__lock) return 0; } +__PT_SPIN_INLINE int __pthread_spin_wait (__pthread_spinlock_t *__lock); + +__PT_SPIN_INLINE int +__pthread_spin_wait (__pthread_spinlock_t *__lock) +{ + __spin_lock ((__spin_lock_t *) __lock); + return 0; +} + __PT_SPIN_INLINE int __pthread_spin_unlock (__pthread_spinlock_t *__lock); __PT_SPIN_INLINE int |