use a_store to set cancel flag in pthread_cancel, to ensure a barrier
This commit is contained in:
parent
c1b39b203d
commit
ded6cb5f71
1 changed files with 1 additions and 1 deletions
|
|
@ -2,6 +2,6 @@
|
|||
|
||||
int pthread_cancel(pthread_t t)
|
||||
{
|
||||
t->cancel = 1;
|
||||
a_store(&t->cancel, 1);
|
||||
return pthread_kill(t, SIGCANCEL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue