mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-10 05:03:06 +03: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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user