提交 ded6cb5f 编写于 作者: R Rich Felker

use a_store to set cancel flag in pthread_cancel, to ensure a barrier

上级 c1b39b20
......@@ -2,6 +2,6 @@
int pthread_cancel(pthread_t t)
{
t->cancel = 1;
a_store(&t->cancel, 1);
return pthread_kill(t, SIGCANCEL);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册