From 7cc3fb098df221f083da1d81d2327a0a5f22edf5 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Tue, 17 Jan 2017 22:38:04 +0100 Subject: DeadlockDetect now lists some tracked CS's stats. --- src/World.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/World.h') diff --git a/src/World.h b/src/World.h index 707817fd4..591b61911 100644 --- a/src/World.h +++ b/src/World.h @@ -58,7 +58,7 @@ class cCompositeChat; class cCuboid; class cSetChunkData; class cBroadcaster; - +class cDeadlockDetect; typedef std::list< cPlayer * > cPlayerList; typedef std::list< std::pair< cPlayer *, cWorld * > > cAwaitingPlayerList; @@ -703,11 +703,13 @@ public: void InitializeSpawn(void); - /** Starts threads that belong to this world */ - void Start(void); + /** Starts threads that belong to this world. + a_DeadlockDetect is used for tracking this world's age, detecting a possible deadlock. */ + void Start(cDeadlockDetect & a_DeadlockDetect); - /** Stops threads that belong to this world (part of deinit) */ - void Stop(void); + /** Stops threads that belong to this world (part of deinit). + a_DeadlockDetect is used for tracking this world's age, detecting a possible deadlock. */ + void Stop(cDeadlockDetect & a_DeadlockDetect); /** Processes the blocks queued for ticking with a delay (m_BlockTickQueue[]) */ void TickQueuedBlocks(void); -- cgit v1.2.3