optimize contended normal mutex case; add int compare-and-swap atomic
authorRich Felker <dalias@aerifal.cx>
Thu, 17 Mar 2011 16:14:40 +0000 (12:14 -0400)
committerRich Felker <dalias@aerifal.cx>
Thu, 17 Mar 2011 16:14:40 +0000 (12:14 -0400)
commite914f8b7ec79f622fa3b017af434642f61d45ce8
treedfba95ae52b2a5998269f7296bef97aa9fce47c4
parent1d59f1eddbcca03063cf080ded6df13170adcb23
optimize contended normal mutex case; add int compare-and-swap atomic
arch/i386/atomic.h
arch/x86_64/atomic.h
src/thread/pthread_mutex_trylock.c