mirror of git://git.musl-libc.org/musl
use a_store to set cancel flag in pthread_cancel, to ensure a barrier
This commit is contained in:
parent
c1b39b203d
commit
ded6cb5f71
|
@ -2,6 +2,6 @@
|
|||
|
||||
int pthread_cancel(pthread_t t)
|
||||
{
|
||||
t->cancel = 1;
|
||||
a_store(&t->cancel, 1);
|
||||
return pthread_kill(t, SIGCANCEL);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue