From a67760f7c98a9e57a61ee9c61a2175a33ebcb91b Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 15 Jun 2013 15:29:20 +0000 Subject: First attempt at fixing the inter-threading deadlocks between the tick thread and the socket thread git-svn-id: http://mc-server.googlecode.com/svn/trunk@1591 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/ChunkMap.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/ChunkMap.h') diff --git a/source/ChunkMap.h b/source/ChunkMap.h index 1af26c39a..f8f03e063 100644 --- a/source/ChunkMap.h +++ b/source/ChunkMap.h @@ -298,6 +298,9 @@ public: /// Queues the specified block for ticking (block update) void QueueTickBlock(int a_BlockX, int a_BlockY, int a_BlockZ); + + /// Returns the CS for locking the chunkmap; only cWorld::cLock may use this function! + cCriticalSection & GetCS(void) { return m_CSLayers; } private: -- cgit v1.2.3