Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(534)

Unified Diff: fusl/src/thread/pthread_cancel.c

Issue 1689833004: [fusl] Update fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: remove stray space Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fusl/src/thread/mips/syscall_cp.s ('k') | fusl/src/time/clock_gettime.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fusl/src/thread/pthread_cancel.c
diff --git a/fusl/src/thread/pthread_cancel.c b/fusl/src/thread/pthread_cancel.c
index ccaa99df4739f047c8ec0ec5c780bdc27e2d27b0..63e24c1061c81da1d81edfcc57b786a10c1f96a5 100644
--- a/fusl/src/thread/pthread_cancel.c
+++ b/fusl/src/thread/pthread_cancel.c
@@ -92,5 +92,6 @@ int pthread_cancel(pthread_t t)
init = 1;
}
a_store(&t->cancel, 1);
+ if (t == pthread_self() && !t->cancelasync) return 0;
return pthread_kill(t, SIGCANCEL);
}
« no previous file with comments | « fusl/src/thread/mips/syscall_cp.s ('k') | fusl/src/time/clock_gettime.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698