(__pthread_lock): Force lock->__status to be read from memory on every spin.

This commit is contained in:
Ulrich Drepper 2001-02-19 18:47:27 +00:00
parent 4595829c99
commit b99a3ee222

View file

@ -88,6 +88,7 @@ again:
return;
}
}
__asm __volatile ("" : "=m" (lock->__status) : "0" (lock->__status));
}
lock->__spinlock += (spin_count - lock->__spinlock) / 8;