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

Unified Diff: base/threading/platform_thread_posix.cc

Issue 10417026: PPAPI/NaCl: Fix IPC proxy build; pthread_t changed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/threading/platform_thread_posix.cc
diff --git a/base/threading/platform_thread_posix.cc b/base/threading/platform_thread_posix.cc
index 388f8baf62425ab50e6ecc7ab0583a78940daf89..77039a0add82c50f56fa3a3a0e385745d5138f39 100644
--- a/base/threading/platform_thread_posix.cc
+++ b/base/threading/platform_thread_posix.cc
@@ -160,8 +160,11 @@ PlatformThreadId PlatformThread::CurrentId() {
return syscall(__NR_gettid);
#elif defined(OS_ANDROID)
return gettid();
-#elif defined(OS_NACL) || defined(OS_SOLARIS)
+#elif defined(OS_SOLARIS)
return pthread_self();
+#elif defined(OS_NACL)
+ // Pointers are 32-bits in NaCl.
Mark Seaborn 2012/05/22 16:39:39 You might also comment that we're assuming nacl-ne
+ return reinterpret_cast<int32>(pthread_self());
Mark Seaborn 2012/05/22 16:39:39 FYI, this would break again if nacl-newlib's libpt
#elif defined(OS_POSIX)
return reinterpret_cast<int64>(pthread_self());
#endif
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698