mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 23:44:35 +00:00
Remove exception handler during profiler destruction.
This commit is contained in:
parent
61c9e8e6d8
commit
924224501e
@ -1231,7 +1231,7 @@ void Profiler::SpawnWorkerThreads()
|
||||
|
||||
#if defined _WIN32 || defined __CYGWIN__
|
||||
s_profilerThreadId = GetThreadId( s_thread->Handle() );
|
||||
AddVectoredExceptionHandler( 1, CrashFilter );
|
||||
m_exceptionHandler = AddVectoredExceptionHandler( 1, CrashFilter );
|
||||
#endif
|
||||
|
||||
#ifdef __linux__
|
||||
@ -1263,6 +1263,10 @@ Profiler::~Profiler()
|
||||
{
|
||||
m_shutdown.store( true, std::memory_order_relaxed );
|
||||
|
||||
#if defined _WIN32 || defined __CYGWIN__
|
||||
if( m_crashHandlerInstalled ) RemoveVectoredExceptionHandler( m_exceptionHandler );
|
||||
#endif
|
||||
|
||||
#ifdef __linux__
|
||||
if( m_crashHandlerInstalled )
|
||||
{
|
||||
|
@ -812,6 +812,9 @@ private:
|
||||
char* m_queryData;
|
||||
char* m_queryDataPtr;
|
||||
|
||||
#if defined _WIN32 || defined __CYGWIN__
|
||||
void* m_exceptionHandler;
|
||||
#endif
|
||||
#ifdef __linux__
|
||||
struct {
|
||||
struct sigaction pwr, ill, fpe, segv, pipe, bus, abrt;
|
||||
|
Loading…
Reference in New Issue
Block a user