From 7c72c101cf3f3cd707858cbb2a622c420f93ceb0 Mon Sep 17 00:00:00 2001 From: Tommi Date: Sat, 17 Feb 2018 19:09:25 +0100 Subject: [PATCH] Playing whac-a-mole with the Fuchsia builders Updating IsThreadRefEqual and CurrentThreadRef for Fuchsia. Bug: webrtc:8893 Change-Id: I731ecc25c00cbba51e6c30c7c0bbb06a04add7bd Tbr: guidou@webrtc.org Notry: true Reviewed-on: https://webrtc-review.googlesource.com/54308 Reviewed-by: Tommi Commit-Queue: Tommi Cr-Commit-Position: refs/heads/master@{#22070} --- rtc_base/platform_thread_types.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtc_base/platform_thread_types.cc b/rtc_base/platform_thread_types.cc index 6426daee71..211224b2b5 100644 --- a/rtc_base/platform_thread_types.cc +++ b/rtc_base/platform_thread_types.cc @@ -37,7 +37,7 @@ PlatformThreadId CurrentThreadId() { } PlatformThreadRef CurrentThreadRef() { -#if defined(WEBRTC_WIN) +#if defined(WEBRTC_WIN) || defined(WEBRTC_FUCHSIA) return GetCurrentThreadId(); #elif defined(WEBRTC_POSIX) return pthread_self(); @@ -45,7 +45,7 @@ PlatformThreadRef CurrentThreadRef() { } bool IsThreadRefEqual(const PlatformThreadRef& a, const PlatformThreadRef& b) { -#if defined(WEBRTC_WIN) +#if defined(WEBRTC_WIN) || defined(WEBRTC_FUCHSIA) return a == b; #elif defined(WEBRTC_POSIX) return pthread_equal(a, b);