about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/thread/pthread_cancel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread/pthread_cancel.c b/src/thread/pthread_cancel.c
index 1ff00ad3..c497dbe6 100644
--- 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);
 }