summaryrefslogtreecommitdiffstats
path: root/source/cClientHandle.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-26 01:36:51 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-26 01:36:51 +0100
commit0e33c919dd5c954e0e9d266924c1650237bb95a1 (patch)
tree32f4f3c136da43a9edaaa4921979ac4c0518743c /source/cClientHandle.h
parentExtended SocketThreads for writing support (unusable in cClientHandle due to too many deadlock possibilities) (diff)
downloadcuberite-0e33c919dd5c954e0e9d266924c1650237bb95a1.tar
cuberite-0e33c919dd5c954e0e9d266924c1650237bb95a1.tar.gz
cuberite-0e33c919dd5c954e0e9d266924c1650237bb95a1.tar.bz2
cuberite-0e33c919dd5c954e0e9d266924c1650237bb95a1.tar.lz
cuberite-0e33c919dd5c954e0e9d266924c1650237bb95a1.tar.xz
cuberite-0e33c919dd5c954e0e9d266924c1650237bb95a1.tar.zst
cuberite-0e33c919dd5c954e0e9d266924c1650237bb95a1.zip
Diffstat (limited to '')
-rw-r--r--source/cClientHandle.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/source/cClientHandle.h b/source/cClientHandle.h
index 6b567a88b..3fcfef716 100644
--- a/source/cClientHandle.h
+++ b/source/cClientHandle.h
@@ -98,8 +98,6 @@ public:
void Send(const cPacket & a_Packet, ENUM_PRIORITY a_Priority = E_PRIORITY_NORMAL) { Send(&a_Packet, a_Priority); }
void Send(const cPacket * a_Packet, ENUM_PRIORITY a_Priority = E_PRIORITY_NORMAL);
- static void SendThread( void *lpParam );
-
const AString & GetUsername(void) const;
inline short GetPing() { return m_Ping; }
@@ -118,20 +116,17 @@ private:
AString m_ReceivedData; // Accumulator for the data received from the socket, waiting to be parsed; accessed from the cSocketThreads' thread only!
- PacketList m_PendingNrmSendPackets;
- PacketList m_PendingLowSendPackets;
+ cCriticalSection m_CSPackets;
+ PacketList m_PendingNrmSendPackets;
+ PacketList m_PendingLowSendPackets;
cCriticalSection m_CSChunkLists;
cChunkCoordsList m_LoadedChunks; // Chunks that the player belongs to
cChunkCoordsList m_ChunksToSend; // Chunks that need to be sent to the player (queued because they weren't generated yet or there's not enough time to send them)
- cThread * m_pSendThread;
-
cSocket m_Socket;
cCriticalSection m_CriticalSection;
- cCriticalSection m_SendCriticalSection;
- cSemaphore m_Semaphore;
Vector3d m_ConfirmPosition;