mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Fix rpmalloc init for TRACY_MANUAL_LIFETIME path.
This commit is contained in:
parent
1badc53e71
commit
f4d80a4f5f
@ -954,6 +954,10 @@ struct ProfilerThreadData
|
|||||||
# endif
|
# endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
std::atomic<int> RpInitDone { 0 };
|
||||||
|
std::atomic<int> RpInitLock { 0 };
|
||||||
|
thread_local bool RpThreadInitDone = false;
|
||||||
|
|
||||||
# ifdef TRACY_MANUAL_LIFETIME
|
# ifdef TRACY_MANUAL_LIFETIME
|
||||||
ProfilerData* s_profilerData = nullptr;
|
ProfilerData* s_profilerData = nullptr;
|
||||||
TRACY_API void StartupProfiler()
|
TRACY_API void StartupProfiler()
|
||||||
@ -975,9 +979,6 @@ TRACY_API void ShutdownProfiler()
|
|||||||
rpmalloc_finalize();
|
rpmalloc_finalize();
|
||||||
}
|
}
|
||||||
# else
|
# else
|
||||||
std::atomic<int> RpInitDone { 0 };
|
|
||||||
std::atomic<int> RpInitLock { 0 };
|
|
||||||
thread_local bool RpThreadInitDone = false;
|
|
||||||
static std::atomic<int> profilerDataLock { 0 };
|
static std::atomic<int> profilerDataLock { 0 };
|
||||||
static std::atomic<ProfilerData*> profilerData { nullptr };
|
static std::atomic<ProfilerData*> profilerData { nullptr };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user