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 <tommi@webrtc.org>
Commit-Queue: Tommi <tommi@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22070}
This commit is contained in:
Tommi 2018-02-17 19:09:25 +01:00 committed by Commit Bot
parent f017980ada
commit 7c72c101cf

View File

@ -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);