revert some more spin optimizations that turned out to be pessimizations

This commit is contained in:
Rich Felker committed 2011-03-28 22:36:55 -04:00
1 parent 4cc78719dd
commit 4106cdcd2d
3 files changed
+3 -4

No files matched your search

+1 -2
View File
@@ -2,6 +2,5 @@
int pthread_spin_trylock(pthread_spinlock_t *s)
{
if (*s || a_xchg(s, 1)) return EBUSY;
return 0;
return -a_xchg(s, 1) & EBUSY;
}