From 50205bc4df3c272b88a5edd81a35ac0aca8213d5 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Wed, 14 Aug 2013 22:39:12 +0200 Subject: Added simple deadlock detection code. This will assert and then deliberately crash the server once a deadlock is detected. For detection, only the world tick threads are considered, cWorld's m_WorldAge is checked periodically and if it doesn't increment for several seconds, a deadlock is reported. --- VC2008/MCServer.vcproj | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'VC2008') diff --git a/VC2008/MCServer.vcproj b/VC2008/MCServer.vcproj index 4d850626d..0dcdeb3db 100644 --- a/VC2008/MCServer.vcproj +++ b/VC2008/MCServer.vcproj @@ -390,6 +390,14 @@ RelativePath="..\source\Cuboid.h" > + + + + -- cgit v1.2.3