From bf30528ec4ed53d4c6aef2da0410a04124bbc492 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Sat, 30 Nov 2013 22:14:47 +0100 Subject: DeadlockDetect is configurable now. This is needed when debugging Lua plugins. --- src/DeadlockDetect.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/DeadlockDetect.h') 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; -- cgit v1.2.3