History log of /seL4-camkes-master/projects/musllibc/src/thread/pthread_spin_trylock.c
Revision Date Author Comments
# afbcac68 22-Apr-2015 Rich Felker <dalias@aerifal.cx>

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.


# 2b71a4d1 16-Sep-2011 Rich Felker <dalias@aerifal.cx>

fix more instances of old a_xchg (use new a_swap name)


# 4106cdcd 28-Mar-2011 Rich Felker <dalias@aerifal.cx>

revert some more spin optimizations that turned out to be pessimizations


# b8b85a42 24-Mar-2011 Rich Felker <dalias@aerifal.cx>

optimize contended case for pthread_spin_trylock


# 0b44a031 11-Feb-2011 Rich Felker <dalias@aerifal.cx>

initial check-in, version 0.5.0