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:
Samuel Thibault 2020-02-09 16:54:58 +00:00
parent e622ce98c5
commit 900778283a

View File

@ -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;
}