1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-11-08 07:02:21 +03:00
Files
glibc/linuxthreads/spinlock.h
Ulrich Drepper 47e5d2a8b1 Update.
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.
2001-05-24 23:38:52 +00:00

6.6 KiB