1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Send protocol version to verify handshake.

This commit is contained in:
Bartosz Taudul
2018-09-09 19:28:53 +02:00
parent db1d7d2c92
commit 984a711666
6 changed files with 85 additions and 3 deletions
+2
View File
@@ -264,6 +264,7 @@ public:
void Write( FileWrite& f );
int GetTraceVersion() const { return m_traceVersion; }
uint8_t GetHandshakeStatus() const { return m_handshake.load( std::memory_order_relaxed ); }
static const LoadProgress& GetLoadProgress() { return s_loadProgress; }
@@ -415,6 +416,7 @@ private:
MbpsBlock m_mbpsData;
int m_traceVersion;
std::atomic<uint8_t> m_handshake;
static LoadProgress s_loadProgress;
};