1
0
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:
Andrey Voroshilov
2020-07-18 18:24:49 -07:00
parent 416259fdb7
commit 175ec3e3d8
3 changed files with 15 additions and 11 deletions
-11
View File
@@ -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__