mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +00:00
-Set thread init false on thread exit for manual lifetime cases
This commit is contained in:
parent
3d28d1259b
commit
c176d1d603
@ -14,6 +14,10 @@
|
|||||||
namespace tracy
|
namespace tracy
|
||||||
{
|
{
|
||||||
|
|
||||||
|
#ifdef TRACY_MANUAL_LIFETIME
|
||||||
|
extern thread_local bool RpThreadInitDone;
|
||||||
|
#endif
|
||||||
|
|
||||||
class ThreadExitHandler
|
class ThreadExitHandler
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -21,6 +25,7 @@ public:
|
|||||||
{
|
{
|
||||||
#ifdef TRACY_MANUAL_LIFETIME
|
#ifdef TRACY_MANUAL_LIFETIME
|
||||||
rpmalloc_thread_finalize();
|
rpmalloc_thread_finalize();
|
||||||
|
RpThreadInitDone = false;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user