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/World.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'source/World.cpp') diff --git a/source/World.cpp b/source/World.cpp index 36fb08702..f9da43ed2 100644 --- a/source/World.cpp +++ b/source/World.cpp @@ -172,6 +172,18 @@ protected: +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// cWorld::cLock: + +cWorld::cLock::cLock(cWorld & a_World) : + super(&(a_World.m_ChunkMap->GetCS())) +{ +} + + + + + /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // cWorld: -- cgit v1.2.3