Merge pull request #7293 from jherico/watchdog

Ensure the heartbeat has a valid value before the  thread starts
This commit is contained in:
Howard Stearns 2016-03-09 11:05:30 -08:00
commit ec23e760fe

View file

@ -244,6 +244,8 @@ public:
// Set the heartbeat on launch
DeadlockWatchdogThread() {
QTimer* heartbeatTimer = new QTimer();
// Give the heartbeat an initial value
_heartbeat = usecTimestampNow();
connect(heartbeatTimer, &QTimer::timeout, [this] {
_heartbeat = usecTimestampNow();
});