mirror of
https://github.com/fluencelabs/musl
synced 2025-06-28 14:11:56 +00:00
use a_store to set cancel flag in pthread_cancel, to ensure a barrier
This commit is contained in:
@ -2,6 +2,6 @@
|
|||||||
|
|
||||||
int pthread_cancel(pthread_t t)
|
int pthread_cancel(pthread_t t)
|
||||||
{
|
{
|
||||||
t->cancel = 1;
|
a_store(&t->cancel, 1);
|
||||||
return pthread_kill(t, SIGCANCEL);
|
return pthread_kill(t, SIGCANCEL);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user