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

This commit is contained in:
Rich Felker 2011-04-01 19:53:16 -04:00
parent c1b39b203d
commit ded6cb5f71
1 changed files with 1 additions and 1 deletions

View File

@ -2,6 +2,6 @@
int pthread_cancel(pthread_t t)
{
t->cancel = 1;
a_store(&t->cancel, 1);
return pthread_kill(t, SIGCANCEL);
}