Fixed race conditions
This commit is contained in:
parent
9c1cb488db
commit
e1ba104359
@ -415,7 +415,7 @@ private:
|
|||||||
int m_LastStreamedChunkZ;
|
int m_LastStreamedChunkZ;
|
||||||
|
|
||||||
/** Number of ticks since the last network packet was received (increased in Tick(), reset in OnReceivedData()) */
|
/** Number of ticks since the last network packet was received (increased in Tick(), reset in OnReceivedData()) */
|
||||||
int m_TicksSinceLastPacket;
|
std::atomic<int> m_TicksSinceLastPacket;
|
||||||
|
|
||||||
/** Duration of the last completed client ping. */
|
/** Duration of the last completed client ping. */
|
||||||
std::chrono::steady_clock::duration m_Ping;
|
std::chrono::steady_clock::duration m_Ping;
|
||||||
|
@ -189,7 +189,7 @@ private:
|
|||||||
|
|
||||||
bool m_bIsConnected; // true - connected false - not connected
|
bool m_bIsConnected; // true - connected false - not connected
|
||||||
|
|
||||||
bool m_bRestarting;
|
std::atomic<bool> m_bRestarting;
|
||||||
|
|
||||||
/** The private key used for the assymetric encryption start in the protocols */
|
/** The private key used for the assymetric encryption start in the protocols */
|
||||||
cRsaPrivateKey m_PrivateKey;
|
cRsaPrivateKey m_PrivateKey;
|
||||||
|
Loading…
Reference in New Issue
Block a user