projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1b39b2
)
use a_store to set cancel flag in pthread_cancel, to ensure a barrier
author
Rich Felker
<dalias@aerifal.cx>
Fri, 1 Apr 2011 23:53:16 +0000
(19:53 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Fri, 1 Apr 2011 23:53:16 +0000
(19:53 -0400)
src/thread/pthread_cancel.c
patch
|
blob
|
history
diff --git
a/src/thread/pthread_cancel.c
b/src/thread/pthread_cancel.c
index 1ff00ad3016e43a685c3e9a196f85cdb3701b739..c497dbe667d101054158d1399854f2da8469a5cc 100644
(file)
--- a/
src/thread/pthread_cancel.c
+++ b/
src/thread/pthread_cancel.c
@@
-2,6
+2,6
@@
int pthread_cancel(pthread_t t)
{
-
t->cancel = 1
;
+
a_store(&t->cancel, 1)
;
return pthread_kill(t, SIGCANCEL);
}