diff options
author | Julian Laubstein <julianlaubstein@yahoo.de> | 2015-07-31 19:26:33 +0200 |
---|---|---|
committer | Julian Laubstein <julianlaubstein@yahoo.de> | 2015-07-31 19:26:33 +0200 |
commit | d19cde93fa3344f318fb0d4ffbf5bb0397a51a75 (patch) | |
tree | b5ee221d8a8e63c7d3b7868da1db19bf717a6ffd /src/DeadlockDetect.h | |
parent | Merge pull request #2400 from cuberite/OffloadBadChunks (diff) | |
parent | Unified the doxy-comment format. (diff) | |
download | cuberite-d19cde93fa3344f318fb0d4ffbf5bb0397a51a75.tar cuberite-d19cde93fa3344f318fb0d4ffbf5bb0397a51a75.tar.gz cuberite-d19cde93fa3344f318fb0d4ffbf5bb0397a51a75.tar.bz2 cuberite-d19cde93fa3344f318fb0d4ffbf5bb0397a51a75.tar.lz cuberite-d19cde93fa3344f318fb0d4ffbf5bb0397a51a75.tar.xz cuberite-d19cde93fa3344f318fb0d4ffbf5bb0397a51a75.tar.zst cuberite-d19cde93fa3344f318fb0d4ffbf5bb0397a51a75.zip |
Diffstat (limited to 'src/DeadlockDetect.h')
-rw-r--r-- | src/DeadlockDetect.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/DeadlockDetect.h b/src/DeadlockDetect.h index 57027e923..3d8e49a6d 100644 --- a/src/DeadlockDetect.h +++ b/src/DeadlockDetect.h @@ -34,32 +34,32 @@ public: protected: struct sWorldAge { - /// Last m_WorldAge that has been detected in this world + /** Last m_WorldAge that has been detected in this world */ Int64 m_Age; - /// Number of cycles for which the age has been the same + /** Number of cycles for which the age has been the same */ int m_NumCyclesSame; } ; - /// Maps world name -> sWorldAge + /** Maps world name -> sWorldAge */ typedef std::map<AString, sWorldAge> WorldAges; WorldAges m_WorldAges; - /// Number of secods for which the ages must be the same for the detection to trigger + /** Number of secods for which the ages must be the same for the detection to trigger */ int m_IntervalSec; // cIsThread overrides: virtual void Execute(void) override; - /// Sets the initial world age + /** Sets the initial world age */ void SetWorldAge(const AString & a_WorldName, Int64 a_Age); - /// Checks if the world's age has changed, updates the world's stats; calls DeadlockDetected() if deadlock detected + /** Checks if the world's age has changed, updates the world's stats; calls DeadlockDetected() if deadlock detected */ void CheckWorldAge(const AString & a_WorldName, Int64 a_Age); - /// Called when a deadlock is detected. Aborts the server. + /** Called when a deadlock is detected. Aborts the server. */ NORETURN void DeadlockDetected(void); } ; |