提交 117581ca 编写于 作者: R Rich Felker

fix broken spinlock due to miscompilation

actually this trick also seems to have made the uncontended case slower.
上级 ef839c73
......@@ -2,6 +2,6 @@
int pthread_spin_lock(pthread_spinlock_t *s)
{
while (*s || a_xchg(s, 1));
while (a_xchg(s, 1));
return 0;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册