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

Unified Diff: webrtc/rtc_base/platform_thread.cc

Issue 3001333002: Fix rtc::CurrentThreadId() on Android (Closed)
Patch Set: Created 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/rtc_base/platform_thread.cc
diff --git a/webrtc/rtc_base/platform_thread.cc b/webrtc/rtc_base/platform_thread.cc
index f65743ee3d50b73caf6302a4369d2c038feb2ad5..da5089a1c4835116f4e2fdabfbaf5c6cb6c8b177 100644
--- a/webrtc/rtc_base/platform_thread.cc
+++ b/webrtc/rtc_base/platform_thread.cc
@@ -29,10 +29,10 @@ PlatformThreadId CurrentThreadId() {
#elif defined(WEBRTC_POSIX)
#if defined(WEBRTC_MAC) || defined(WEBRTC_IOS)
ret = pthread_mach_thread_np(pthread_self());
-#elif defined(WEBRTC_LINUX)
- ret = syscall(__NR_gettid);
#elif defined(WEBRTC_ANDROID)
tommi 2017/08/23 13:53:04 ah, so WEBRTC_LINUX is defined for android... doh.
ret = gettid();
+#elif defined(WEBRTC_LINUX)
+ ret = syscall(__NR_gettid);
#else
// Default implementation for nacl and solaris.
ret = reinterpret_cast<pid_t>(pthread_self());
« 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