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

Unified Diff: nptl/pthread_create.c

Issue 7785030: Replace #define syscalls cancel machinery. (Closed) Base URL: http://git.chromium.org/native_client/nacl-glibc.git@master
Patch Set: Cosmetic change Created 9 years, 4 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 | « nptl/forward.c ('k') | nptl/sysdeps/i386/tls.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: nptl/pthread_create.c
diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c
index e1a2c64fe0e96d842e2fc65d78d0e3f6296245a3..290ae496e189189e5a88570f3322ca5e61a48f1e 100644
--- a/nptl/pthread_create.c
+++ b/nptl/pthread_create.c
@@ -395,10 +395,11 @@ start_thread (void *arg)
if (!IS_DETACHED (pd))
{
+ int count;
/* We are about to die: make our pd "almost free" and wake up waiter. */
pd->tid = -2;
- __nacl_futex_wake (&pd->tid, INT_MAX, __FUTEX_BITSET_MATCH_ANY);
+ __nacl_futex_wake (&pd->tid, INT_MAX, __FUTEX_BITSET_MATCH_ANY, &count);
}
__nacl_irt_thread_exit (&pd->tid);
« no previous file with comments | « nptl/forward.c ('k') | nptl/sysdeps/i386/tls.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698