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/ChunkMap.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/ChunkMap.h') diff --git a/src/ChunkMap.h b/src/ChunkMap.h index 2272567af..f1631f91b 100644 --- a/src/ChunkMap.h +++ b/src/ChunkMap.h @@ -38,6 +38,7 @@ class cMobCensus; class cMobSpawner; class cSetChunkData; class cBoundingBox; +class cDeadlockDetect; typedef std::list cClientHandleList; typedef cChunk * cChunkPtr; @@ -411,6 +412,12 @@ public: as at least one requests is active the chunk will be ticked). */ void SetChunkAlwaysTicked(int a_ChunkX, int a_ChunkZ, bool a_AlwaysTicked); + /** Adds this chunkmap's CS to the DeadlockDetect's tracked CSs. */ + void TrackInDeadlockDetect(cDeadlockDetect & a_DeadlockDetect, const AString & a_WorldName); + + /** Removes this chunkmap's CS from the DeadlockDetect's tracked CSs. */ + void UntrackInDeadlockDetect(cDeadlockDetect & a_DeadlockDetect); + private: // The chunks can manipulate neighbors while in their Tick() method, using LockedGetBlock() and LockedSetBlock() -- cgit v1.2.3