From 707ca31ea4b5548db5d33da935352aa06b788184 Mon Sep 17 00:00:00 2001 From: Tommi Date: Sun, 18 Feb 2018 00:07:16 +0100 Subject: [PATCH] Whac-a-mole one more time with Fuchsia. Fix CurrentThreadRef() Bug: none Change-Id: I1882e82e33a131cc0a9256f1862de4557341e565 Tbr: guidou@webrtc.org Notry: true Reviewed-on: https://webrtc-review.googlesource.com/54310 Reviewed-by: Tommi Commit-Queue: Tommi Cr-Commit-Position: refs/heads/master@{#22073} --- rtc_base/platform_thread_types.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rtc_base/platform_thread_types.cc b/rtc_base/platform_thread_types.cc index 211224b2b5..15d48618bd 100644 --- a/rtc_base/platform_thread_types.cc +++ b/rtc_base/platform_thread_types.cc @@ -37,8 +37,10 @@ PlatformThreadId CurrentThreadId() { } PlatformThreadRef CurrentThreadRef() { -#if defined(WEBRTC_WIN) || defined(WEBRTC_FUCHSIA) +#if defined(WEBRTC_WIN) return GetCurrentThreadId(); +#elif defined(WEBRTC_FUCHSIA) + return zx_thread_self(); #elif defined(WEBRTC_POSIX) return pthread_self(); #endif