cvs commit: src/lib/libpthread/sys lock.c
Xin LI
delphij at FreeBSD.org
Sun Feb 27 17:45:55 GMT 2005
delphij 2005-02-27 17:45:55 UTC
FreeBSD src repository
Modified files:
lib/libpthread/sys lock.c
Log:
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
Revision Changes Path
1.9 +1 -1 src/lib/libpthread/sys/lock.c
More information about the cvs-src
mailing list