mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1231106 - Make BSDs fall-through to ASSERT as well. r=jesup
--HG-- extra : transplant_source : %E9%AA%E9%B4D-%1FV%80%AF%EF%B0%A6%DEq%ADS%3B%FD%CB
This commit is contained in:
parent
b0926d6bae
commit
b0cfac53cd
@ -40,18 +40,18 @@ PlatformThreadId CurrentThreadId() {
|
||||
#elif defined(WEBRTC_ANDROID)
|
||||
ret = gettid();
|
||||
#elif defined(__NetBSD__)
|
||||
return _lwp_self();
|
||||
ret = _lwp_self();
|
||||
#elif defined(__DragonFly__)
|
||||
return lwp_gettid();
|
||||
ret = lwp_gettid();
|
||||
#elif defined(__OpenBSD__)
|
||||
return reinterpret_cast<uintptr_t> (pthread_self());
|
||||
ret = reinterpret_cast<uintptr_t> (pthread_self());
|
||||
#elif defined(__FreeBSD__)
|
||||
#if __FreeBSD_version > 900030
|
||||
return pthread_getthreadid_np();
|
||||
ret = pthread_getthreadid_np();
|
||||
#else
|
||||
long lwpid;
|
||||
thr_self(&lwpid);
|
||||
return lwpid;
|
||||
ret = lwpid;
|
||||
#endif
|
||||
#else
|
||||
// Default implementation for nacl and solaris.
|
||||
|
Loading…
Reference in New Issue
Block a user