mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Fix atomics initialization.
This commit is contained in:
parent
18a9741b5d
commit
b3812146cb
@ -788,10 +788,10 @@ struct ProfilerData
|
|||||||
RPMallocInit rpmalloc_init;
|
RPMallocInit rpmalloc_init;
|
||||||
moodycamel::ConcurrentQueue<QueueItem> queue;
|
moodycamel::ConcurrentQueue<QueueItem> queue;
|
||||||
Profiler profiler;
|
Profiler profiler;
|
||||||
std::atomic<uint32_t> lockCounter = 0;
|
std::atomic<uint32_t> lockCounter { 0 };
|
||||||
std::atomic<uint8_t> gpuCtxCounter = 0;
|
std::atomic<uint8_t> gpuCtxCounter { 0 };
|
||||||
# ifdef TRACY_COLLECT_THREAD_NAMES
|
# ifdef TRACY_COLLECT_THREAD_NAMES
|
||||||
std::atomic<ThreadNameData*> threadNameData = nullptr;
|
std::atomic<ThreadNameData*> threadNameData { nullptr };
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -460,9 +460,9 @@ private:
|
|||||||
std::string m_addr;
|
std::string m_addr;
|
||||||
|
|
||||||
std::thread m_thread;
|
std::thread m_thread;
|
||||||
std::atomic<bool> m_connected = { false };
|
std::atomic<bool> m_connected { false };
|
||||||
std::atomic<bool> m_hasData;
|
std::atomic<bool> m_hasData;
|
||||||
std::atomic<bool> m_shutdown = { false };
|
std::atomic<bool> m_shutdown { false };
|
||||||
|
|
||||||
std::thread m_threadBackground;
|
std::thread m_threadBackground;
|
||||||
|
|
||||||
@ -509,7 +509,7 @@ private:
|
|||||||
MbpsBlock m_mbpsData;
|
MbpsBlock m_mbpsData;
|
||||||
|
|
||||||
int m_traceVersion;
|
int m_traceVersion;
|
||||||
std::atomic<uint8_t> m_handshake = { 0 };
|
std::atomic<uint8_t> m_handshake { 0 };
|
||||||
|
|
||||||
static LoadProgress s_loadProgress;
|
static LoadProgress s_loadProgress;
|
||||||
int64_t m_loadTime;
|
int64_t m_loadTime;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user