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

Unified Diff: sysdeps/nacl/exit-thread.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/sysdeps/x86_64/tls.h ('k') | sysdeps/nacl/futex_emulation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sysdeps/nacl/exit-thread.c
diff --git a/sysdeps/nacl/exit-thread.c b/sysdeps/nacl/exit-thread.c
index 4a2ab510f65e7edaac4860522305dd3967c1d40e..bef2d1039a7b5c6590076d0730d570187e668d54 100644
--- a/sysdeps/nacl/exit-thread.c
+++ b/sysdeps/nacl/exit-thread.c
@@ -7,8 +7,9 @@ void __exit_thread (int val)
{
/* We are about to die: make our pd "almost free" and wake up waiter. */
struct pthread* pd = THREAD_SELF;
+ int count;
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);
/* Not reached */
__asm__ ("hlt");
« no previous file with comments | « nptl/sysdeps/x86_64/tls.h ('k') | sysdeps/nacl/futex_emulation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698