mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 830908: Thread intsize patch uplifted from webrtc.org r=derf
This commit is contained in:
parent
ce91d6b4b2
commit
2b01a17d95
@ -139,6 +139,8 @@ ThreadPosix::ThreadPosix(ThreadRunFunction func, ThreadObj obj,
|
||||
uint32_t ThreadWrapper::GetThreadId() {
|
||||
#if defined(WEBRTC_ANDROID) || defined(WEBRTC_LINUX)
|
||||
return static_cast<uint32_t>(syscall(__NR_gettid));
|
||||
#elif defined(WEBRTC_MAC) || defined(WEBRTC_IOS)
|
||||
return pthread_mach_thread_np(pthread_self());
|
||||
#else
|
||||
return reinterpret_cast<uint32_t>(pthread_self());
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user