Skip to content

Commit

Permalink
Merge pull request vircadia#1547 from JulianGro/macOS_revert_deadlock
Browse files Browse the repository at this point in the history
Remove extended deadlock wait on macOS
daleglass authored Dec 26, 2021
2 parents 574b5ae + 3bc9846 commit 08407b9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions interface/src/Application.cpp
Original file line number Diff line number Diff line change
@@ -381,12 +381,7 @@ const std::vector<std::pair<QString, Application::AcceptURLMethod>> Application:
class DeadlockWatchdogThread : public QThread {
public:
static const unsigned long HEARTBEAT_UPDATE_INTERVAL_SECS = 1;
// TODO: go back to 2 min across the board, after figuring out the issues with mac
#if defined(Q_OS_MAC)
static const unsigned long MAX_HEARTBEAT_AGE_USECS = 600 * USECS_PER_SECOND; // 10 mins with no checkin probably a deadlock, right now, on MAC
#else
static const unsigned long MAX_HEARTBEAT_AGE_USECS = 120 * USECS_PER_SECOND; // 2 mins with no checkin probably a deadlock
#endif
static const int WARNING_ELAPSED_HEARTBEAT = 500 * USECS_PER_MSEC; // warn if elapsed heartbeat average is large
static const int HEARTBEAT_SAMPLES = 100000; // ~5 seconds worth of samples

0 comments on commit 08407b9

Please sign in to comment.