mirror of git://sourceware.org/git/glibc.git
htl: make pthread_spin_lock really spin
__spin_lock would actually use gsync_wait to block, which is not what pthread_spin_lock is about.
This commit is contained in:
parent
e622ce98c5
commit
900778283a
|
@ -67,7 +67,7 @@ __PT_SPIN_INLINE int __pthread_spin_lock (__pthread_spinlock_t *__lock);
|
||||||
__PT_SPIN_INLINE int
|
__PT_SPIN_INLINE int
|
||||||
__pthread_spin_lock (__pthread_spinlock_t *__lock)
|
__pthread_spin_lock (__pthread_spinlock_t *__lock)
|
||||||
{
|
{
|
||||||
__spin_lock ((__spin_lock_t *) __lock);
|
__spin_lock_solid ((__spin_lock_t *) __lock);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue