summaryrefslogtreecommitdiffstats
path: root/src/DeadlockDetect.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-11-30 22:14:47 +0100
committermadmaxoft <github@xoft.cz>2013-11-30 22:14:47 +0100
commitbf30528ec4ed53d4c6aef2da0410a04124bbc492 (patch)
treed369ea10c1173cd9a77f740ee07ea869ad6c7e62 /src/DeadlockDetect.h
parentFixed compiler warnings in IsBiomeNoDownfall(). (diff)
downloadcuberite-bf30528ec4ed53d4c6aef2da0410a04124bbc492.tar
cuberite-bf30528ec4ed53d4c6aef2da0410a04124bbc492.tar.gz
cuberite-bf30528ec4ed53d4c6aef2da0410a04124bbc492.tar.bz2
cuberite-bf30528ec4ed53d4c6aef2da0410a04124bbc492.tar.lz
cuberite-bf30528ec4ed53d4c6aef2da0410a04124bbc492.tar.xz
cuberite-bf30528ec4ed53d4c6aef2da0410a04124bbc492.tar.zst
cuberite-bf30528ec4ed53d4c6aef2da0410a04124bbc492.zip
Diffstat (limited to 'src/DeadlockDetect.h')
-rw-r--r--src/DeadlockDetect.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/DeadlockDetect.h b/src/DeadlockDetect.h
index 2559c3fff..cb2309169 100644
--- a/src/DeadlockDetect.h
+++ b/src/DeadlockDetect.h
@@ -29,7 +29,7 @@ public:
cDeadlockDetect(void);
/// Starts the detection. Hides cIsThread's Start, because we need some initialization
- bool Start(void);
+ bool Start(int a_IntervalSec);
protected:
struct sWorldAge
@@ -46,6 +46,9 @@ protected:
WorldAges m_WorldAges;
+ /// 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;