diff options
author | Alistair Buxton <[email protected]> | 2014-02-07 20:21:58 +0000 |
---|---|---|
committer | Alistair Buxton <[email protected]> | 2014-02-07 20:48:45 +0000 |
commit | 3c53d74a6065c5878b0b3c3e345baf848ac90a58 (patch) | |
tree | 8d575fd9e47eecf1426cc979e088a9b0ddca489d | |
parent | c8bc5cf5bb5c9b4c49114638ebb7a69a17e25452 (diff) |
Don't try to set thread name on mingw.
Mingw doesn't support SEH so the recommended way of setting the
thread name doesn't work. This can be rewritten in a portable way
but for now just disable it, as it's only a debugging feature.
-rw-r--r-- | LibOVR/Src/Kernel/OVR_ThreadsWinAPI.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/LibOVR/Src/Kernel/OVR_ThreadsWinAPI.cpp b/LibOVR/Src/Kernel/OVR_ThreadsWinAPI.cpp index 8880082..30e8656 100644 --- a/LibOVR/Src/Kernel/OVR_ThreadsWinAPI.cpp +++ b/LibOVR/Src/Kernel/OVR_ThreadsWinAPI.cpp @@ -969,6 +969,7 @@ void Thread::SetThreadName( const char* name ) info.dwThreadID = reinterpret_cast<DWORD>(GetThreadId()); info.dwFlags = 0; +#if !defined(__MINGW32__) // FIXME: Port this to mingw. __try { #ifdef _WIN64 @@ -980,6 +981,7 @@ void Thread::SetThreadName( const char* name ) __except( GetExceptionCode()==0x406D1388 ? EXCEPTION_CONTINUE_EXECUTION : EXCEPTION_EXECUTE_HANDLER ) { } +#endif // __MINGW32__ #endif // OVR_BUILD_SHIPPING } |