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 <tommi@webrtc.org>
Commit-Queue: Tommi <tommi@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22073}
This commit is contained in:
Tommi
2018-02-18 00:07:16 +01:00
committed by Commit Bot
parent 0a59d2912a
commit 707ca31ea4

View File

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