mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 22:40:05 +00:00
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
|
||||
__pthread_spin_lock (__pthread_spinlock_t *__lock)
|
||||
{
|
||||
__spin_lock ((__spin_lock_t *) __lock);
|
||||
__spin_lock_solid ((__spin_lock_t *) __lock);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user