Commit Graph
5 Commits
Author SHA1 Message Date
Rich Felker afbcac6826 minor optimization to pthread_spin_trylock
use CAS instead of swap since it's lighter for most archs, and keep
EBUSY in the lock value so that the old value obtained by CAS can be
used directly as the return value for pthread_spin_trylock.
2015-04-22 03:24:37 -04:00
Rich Felker 2b71a4d1df fix more instances of old a_xchg (use new a_swap name) 2011-09-16 14:33:51 -04:00
Rich Felker 4106cdcd2d revert some more spin optimizations that turned out to be pessimizations 2011-03-28 22:36:55 -04:00
Rich Felker b8b85a4272 optimize contended case for pthread_spin_trylock 2011-03-24 23:06:08 -04:00
Rich Felker 0b44a0315b initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00