mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Made s_threadNameDataInstance and s_profilerInstance static.
This commit is contained in:
parent
dd042619e9
commit
2dcfe5fce0
@ -176,7 +176,7 @@ VkCtxWrapper init_order(104) s_vkCtx { nullptr };
|
|||||||
|
|
||||||
#ifdef TRACY_COLLECT_THREAD_NAMES
|
#ifdef TRACY_COLLECT_THREAD_NAMES
|
||||||
struct ThreadNameData;
|
struct ThreadNameData;
|
||||||
std::atomic<ThreadNameData*> init_order(104) s_threadNameDataInstance( nullptr );
|
static std::atomic<ThreadNameData*> init_order(104) s_threadNameDataInstance( nullptr );
|
||||||
std::atomic<ThreadNameData*>& s_threadNameData = s_threadNameDataInstance;
|
std::atomic<ThreadNameData*>& s_threadNameData = s_threadNameDataInstance;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -184,7 +184,7 @@ std::atomic<ThreadNameData*>& s_threadNameData = s_threadNameDataInstance;
|
|||||||
thread_local LuaZoneState init_order(104) s_luaZoneState { 0, false };
|
thread_local LuaZoneState init_order(104) s_luaZoneState { 0, false };
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Profiler init_order(105) s_profilerInstance;
|
static Profiler init_order(105) s_profilerInstance;
|
||||||
Profiler& s_profiler = s_profilerInstance;
|
Profiler& s_profiler = s_profilerInstance;
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user