diff options
author | Mattes D <github@xoft.cz> | 2015-01-26 14:49:51 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-01-27 14:53:38 +0100 |
commit | 19d463ae1c0faaf08a0783a01db81eae0a271b62 (patch) | |
tree | e601cdfb70dad08ef469cb00accc52aa4ff0ad40 /src/ClientHandle.h | |
parent | Added network termination called at app exit. (diff) | |
download | cuberite-19d463ae1c0faaf08a0783a01db81eae0a271b62.tar cuberite-19d463ae1c0faaf08a0783a01db81eae0a271b62.tar.gz cuberite-19d463ae1c0faaf08a0783a01db81eae0a271b62.tar.bz2 cuberite-19d463ae1c0faaf08a0783a01db81eae0a271b62.tar.lz cuberite-19d463ae1c0faaf08a0783a01db81eae0a271b62.tar.xz cuberite-19d463ae1c0faaf08a0783a01db81eae0a271b62.tar.zst cuberite-19d463ae1c0faaf08a0783a01db81eae0a271b62.zip |
Diffstat (limited to 'src/ClientHandle.h')
-rw-r--r-- | src/ClientHandle.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ClientHandle.h b/src/ClientHandle.h index f5b7faede..8129d6a50 100644 --- a/src/ClientHandle.h +++ b/src/ClientHandle.h @@ -376,9 +376,13 @@ private: Protected by m_CSIncomingData. */ AString m_IncomingData; - /** Protects data going out through m_Link against multi-threaded sending. */ + /** Protects m_OutgoingData against multithreaded access. */ cCriticalSection m_CSOutgoingData; + /** Buffer for storing outgoing data from any thread; will get sent in Tick() (to prevent deadlocks). + Protected by m_CSOutgoingData. */ + AString m_OutgoingData; + Vector3d m_ConfirmPosition; cPlayer * m_Player; |