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:
@ -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
|
||||
|
Reference in New Issue
Block a user