mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Native threads are used on mingw.
This commit is contained in:
parent
0f6101b19a
commit
3fd74a92f9
@ -1085,14 +1085,8 @@ Profiler::Profiler()
|
|||||||
}
|
}
|
||||||
#endif
|
#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
|
#if defined _WIN32
|
||||||
|
s_profilerThreadId = GetThreadId( s_thread->Handle() );
|
||||||
AddVectoredExceptionHandler( 1, CrashFilter );
|
AddVectoredExceptionHandler( 1, CrashFilter );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user