mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-10 00:09:11 +02:00
Merge pull request #7299 from zzmp/fix/deadlock-debug
Wait 10m for a deadlock when debugging
This commit is contained in:
commit
98f791a723
1 changed files with 4 additions and 0 deletions
|
@ -239,7 +239,11 @@ class DeadlockWatchdogThread : public QThread {
|
||||||
public:
|
public:
|
||||||
static const unsigned long HEARTBEAT_CHECK_INTERVAL_SECS = 1;
|
static const unsigned long HEARTBEAT_CHECK_INTERVAL_SECS = 1;
|
||||||
static const unsigned long HEARTBEAT_UPDATE_INTERVAL_SECS = 1;
|
static const unsigned long HEARTBEAT_UPDATE_INTERVAL_SECS = 1;
|
||||||
|
#ifdef DEBUG
|
||||||
|
static const unsigned long MAX_HEARTBEAT_AGE_USECS = 600 * USECS_PER_SECOND;
|
||||||
|
#else
|
||||||
static const unsigned long MAX_HEARTBEAT_AGE_USECS = 10 * USECS_PER_SECOND;
|
static const unsigned long MAX_HEARTBEAT_AGE_USECS = 10 * USECS_PER_SECOND;
|
||||||
|
#endif
|
||||||
|
|
||||||
// Set the heartbeat on launch
|
// Set the heartbeat on launch
|
||||||
DeadlockWatchdogThread() {
|
DeadlockWatchdogThread() {
|
||||||
|
|
Loading…
Reference in a new issue