1
0

Fixed race conditions

This commit is contained in:
Lukas Pioch 2015-12-30 15:31:42 +01:00
parent 9c1cb488db
commit e1ba104359
2 changed files with 2 additions and 2 deletions

View File

@ -415,7 +415,7 @@ private:
int m_LastStreamedChunkZ;
/** 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. */
std::chrono::steady_clock::duration m_Ping;

View File

@ -189,7 +189,7 @@ private:
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 */
cRsaPrivateKey m_PrivateKey;