mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Moving ThreadExitHandler to a commonly accessible space, adding thread handler usage to SysTrace worker threads
This commit is contained in:
@@ -1208,17 +1208,6 @@ bool Profiler::ShouldExit()
|
||||
return s_instance->m_shutdown.load( std::memory_order_relaxed );
|
||||
}
|
||||
|
||||
class ThreadExitHandler
|
||||
{
|
||||
public:
|
||||
~ThreadExitHandler()
|
||||
{
|
||||
#ifdef TRACY_MANUAL_LIFETIME
|
||||
rpmalloc_thread_finalize();
|
||||
#endif
|
||||
}
|
||||
};
|
||||
|
||||
void Profiler::Worker()
|
||||
{
|
||||
#ifdef __linux__
|
||||
|
||||
Reference in New Issue
Block a user