freebsd-dev/lib/libpthread/sys
Xin LI 12927a8513 Change the spin lock logic to a reasonable one. We should spin when
the lock is held by other thread, but not when nobody owns it.  According
to deischen@, this part of code will never be hit in our threads
library, since it does not use locks without wait/wakeup functions.

Spotted by:	mingyanguo via ChinaUnix.net forum
Reviewed by:	deischen
2005-02-27 17:45:55 +00:00
..
lock.c Change the spin lock logic to a reasonable one. We should spin when 2005-02-27 17:45:55 +00:00
lock.h
Makefile.inc
thr_error.c