summaryrefslogtreecommitdiffstats
path: root/src/DeadlockDetect.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2021-04-05 02:38:43 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2021-04-12 23:35:07 +0200
commit4cd49d7eca5f8fd53eb98577a1f218a5086704bb (patch)
tree09bf29a1d30a37445796ed70867f934435c4261f /src/DeadlockDetect.h
parentFixed generator for the Mega Taiga biome (#5129) (diff)
downloadcuberite-4cd49d7eca5f8fd53eb98577a1f218a5086704bb.tar
cuberite-4cd49d7eca5f8fd53eb98577a1f218a5086704bb.tar.gz
cuberite-4cd49d7eca5f8fd53eb98577a1f218a5086704bb.tar.bz2
cuberite-4cd49d7eca5f8fd53eb98577a1f218a5086704bb.tar.lz
cuberite-4cd49d7eca5f8fd53eb98577a1f218a5086704bb.tar.xz
cuberite-4cd49d7eca5f8fd53eb98577a1f218a5086704bb.tar.zst
cuberite-4cd49d7eca5f8fd53eb98577a1f218a5086704bb.zip
Diffstat (limited to 'src/DeadlockDetect.h')
-rw-r--r--src/DeadlockDetect.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/DeadlockDetect.h b/src/DeadlockDetect.h
index 98ce13df3..0016313ba 100644
--- a/src/DeadlockDetect.h
+++ b/src/DeadlockDetect.h
@@ -46,7 +46,7 @@ protected:
struct sWorldAge
{
/** Last m_WorldAge that has been detected in this world */
- Int64 m_Age;
+ cTickTimeLong m_Age;
/** Number of cycles for which the age has been the same */
int m_NumCyclesSame;
@@ -71,16 +71,16 @@ protected:
// cIsThread overrides:
virtual void Execute(void) override;
- /** Sets the initial world age */
- void SetWorldAge(const AString & a_WorldName, Int64 a_Age);
+ /** Sets the initial world age. */
+ void SetWorldAge(const AString & a_WorldName, cTickTimeLong a_Age);
- /** 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);
+ /** Checks if the world's age has changed, updates the world's stats; calls DeadlockDetected() if deadlock detected. */
+ void CheckWorldAge(const AString & a_WorldName, cTickTimeLong a_Age);
/** Called when a deadlock is detected in a world. Aborts the server.
a_WorldName is the name of the world whose age has triggered the detection.
a_WorldAge is the age (in ticks) in which the world is stuck. */
- [[noreturn]] void DeadlockDetected(const AString & a_WorldName, Int64 a_WorldAge);
+ [[noreturn]] void DeadlockDetected(const AString & a_WorldName, cTickTimeLong a_WorldAge);
/** Outputs a listing of the tracked CSs, together with their name and state. */
void ListTrackedCSs();