T2-CPP/Mod Sources/Watchdog
Calvin Balke 0da786a426 Added two bug fixes and features to WatchDog
Replaced clock with time, and fixed the non-unique handle problem.  Also added new register dump for the watchdog to help diagnose possible problems and ways to fix them.
2015-06-28 09:18:46 -07:00
..
Watchdog Added two bug fixes and features to WatchDog 2015-06-28 09:18:46 -07:00
README.md Gave WatchDog a proper description 2015-06-27 13:39:52 -04:00
Watchdog.sln Restructured project structure to use a singular SLN; made the T2API common to all projects; adjusted watchdog timer to 8 seconds 2015-06-27 13:36:30 -04:00
Watchdog.suo Restructured project structure to use a singular SLN; made the T2API common to all projects; adjusted watchdog timer to 8 seconds 2015-06-27 13:36:30 -04:00

WatchDog

A dog that watches your game. In essence, all it does is spawns a secondary thread that awaits to be "petted" by the main thread from its ServerProcess method. In the event that the main thread takes too long to pet the dog (by default, around 8 seconds), the entire process is terminated by the watchdog thread. Tribes 2 is apparently prone to a lot of lockups, many with no apparent cause. This Watchdog makes it possible for the game to detect that it has been caught in an infinite loop somewhere and could potentially be modified to take corrective action.