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:
Jan Beich 2015-12-03 12:18:29 +00:00
Родитель b0926d6bae
Коммит b0cfac53cd
1 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

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