Application: disable deadlock watchdog for debug builds

Cause it will cause a crash if you sit on a breakpoint for too long.
This commit is contained in:
Anthony Thibault 2016-03-20 12:18:33 -07:00
parent c3c7d3d776
commit b71a56de38

View file

@ -272,11 +272,13 @@ public:
void run() override {
while (!_quit) {
QThread::sleep(HEARTBEAT_UPDATE_INTERVAL_SECS);
#ifdef NDEBUG
auto now = usecTimestampNow();
auto lastHeartbeatAge = now - _heartbeat;
if (lastHeartbeatAge > MAX_HEARTBEAT_AGE_USECS) {
deadlockDetectionCrash();
}
#endif
}
}