Native threads are used on mingw.

This commit is contained in:
Bartosz Taudul 2019-11-07 19:01:42 +01:00
parent 0f6101b19a
commit 3fd74a92f9

View File

@ -1085,14 +1085,8 @@ Profiler::Profiler()
}
#endif
#if defined PTW32_VERSION
s_profilerThreadId = pthread_getw32threadid_np( s_thread->Handle() );
#elif defined __WINPTHREADS_VERSION
s_profilerThreadId = GetThreadId( (HANDLE)pthread_gethandle( s_thread->Handle() ) );
#elif defined _MSC_VER
s_profilerThreadId = GetThreadId( s_thread->Handle() );
#endif
#if defined _WIN32
s_profilerThreadId = GetThreadId( s_thread->Handle() );
AddVectoredExceptionHandler( 1, CrashFilter );
#endif