mirror of
https://sourceware.org/git/glibc.git
synced 2025-11-08 07:02:21 +03:00
2001-05-24 Ulrich Drepper <drepper@redhat.com> * spinlock.c (__pthread_lock) [HAS_COMPARE_AND_SWAP]: Before doing any serious work try once whether the lock is uncontested. Remove duplicate reading of __status before loop. Change suggested by Hans Boehm <hans_boehm@hp.com>. * spinlock.h (__pthread_trylock): Remove need for oldstatus variable. (__pthread_alt_trylock): Likewise.
6.6 KiB
6.6 KiB