T2-CPP/Mod Sources/Watchdog
Calvin Balke d0224b4d9b Updated the WatchDog
Added code to the watchdog to allow dumping bytecode and getting the instruction pointer for the scripting language.
2015-06-29 13:08:54 -07:00
..
Watchdog Updated the WatchDog 2015-06-29 13:08:54 -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.