diff options
author | Mattes D <github@xoft.cz> | 2017-01-17 22:38:04 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2017-01-18 09:03:05 +0100 |
commit | 7cc3fb098df221f083da1d81d2327a0a5f22edf5 (patch) | |
tree | de9232cbf239800ea1e7a71cf52086509a9472ea /src/World.h | |
parent | Debuggers: Added a deadlock simulation command. (diff) | |
download | cuberite-7cc3fb098df221f083da1d81d2327a0a5f22edf5.tar cuberite-7cc3fb098df221f083da1d81d2327a0a5f22edf5.tar.gz cuberite-7cc3fb098df221f083da1d81d2327a0a5f22edf5.tar.bz2 cuberite-7cc3fb098df221f083da1d81d2327a0a5f22edf5.tar.lz cuberite-7cc3fb098df221f083da1d81d2327a0a5f22edf5.tar.xz cuberite-7cc3fb098df221f083da1d81d2327a0a5f22edf5.tar.zst cuberite-7cc3fb098df221f083da1d81d2327a0a5f22edf5.zip |
Diffstat (limited to 'src/World.h')
-rw-r--r-- | src/World.h | 12 |
1 files changed, 7 insertions, 5 deletions
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); |