diff options
author | Mattes D <github@xoft.cz> | 2017-01-18 10:51:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-18 10:51:17 +0100 |
commit | 0256daa7ca98bab7482581dad39f66d570030874 (patch) | |
tree | de9232cbf239800ea1e7a71cf52086509a9472ea /src/World.h | |
parent | Updated Github label links (#3543) (diff) | |
parent | DeadlockDetect now lists some tracked CS's stats. (diff) | |
download | cuberite-0256daa7ca98bab7482581dad39f66d570030874.tar cuberite-0256daa7ca98bab7482581dad39f66d570030874.tar.gz cuberite-0256daa7ca98bab7482581dad39f66d570030874.tar.bz2 cuberite-0256daa7ca98bab7482581dad39f66d570030874.tar.lz cuberite-0256daa7ca98bab7482581dad39f66d570030874.tar.xz cuberite-0256daa7ca98bab7482581dad39f66d570030874.tar.zst cuberite-0256daa7ca98bab7482581dad39f66d570030874.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); |