Bug 1153901 - Disable PlatformThread::SetName functions on builds with no SEH support. r=nfroyd

This commit is contained in:
Jacek Caban 2015-04-14 18:10:19 +02:00
Родитель 23e903547c
Коммит fee7ccc6d7
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -46,6 +46,7 @@ void PlatformThread::Sleep(int duration_ms) {
// static
void PlatformThread::SetName(const char* name) {
#ifdef HAVE_SEH_EXCEPTIONS
// The debugger needs to be around to catch the name in the exception. If
// there isn't a debugger, we are just needlessly throwing an exception.
if (!::IsDebuggerPresent())
@ -62,6 +63,7 @@ void PlatformThread::SetName(const char* name) {
reinterpret_cast<DWORD_PTR*>(&info));
} MOZ_SEH_EXCEPT(EXCEPTION_CONTINUE_EXECUTION) {
}
#endif
}
// static