Lines Matching defs:Watchdog
5 #include "base/threading/watchdog.h"
14 Watchdog::Watchdog(const TimeDelta& duration,
32 // Notify watchdog thread, and wait for it to finish up.
33 Watchdog::~Watchdog() {
44 void Watchdog::Arm() {
48 void Watchdog::ArmSomeTimeDeltaAgo(const TimeDelta& time_delta) {
52 // Start clock for watchdog.
53 void Watchdog::ArmAtStartTime(const TimeTicks start_time) {
59 // Force watchdog to wake up, and go to sleep with the timer ticking with the
64 // Disable watchdog so that it won't do anything when time expires.
65 void Watchdog::Disarm() {
68 // We don't need to signal, as the watchdog will eventually wake up, and it
72 void Watchdog::Alarm() {
73 DVLOG(1) << "Watchdog alarmed for " << thread_watched_name_;
77 // Internal private methods that the watchdog thread uses.
79 void Watchdog::ThreadDelegate::ThreadMain() {
124 void Watchdog::ThreadDelegate::SetThreadName() const {
125 std::string name = watchdog_->thread_watched_name_ + " Watchdog";
127 DVLOG(1) << "Watchdog active: " << name;
131 void Watchdog::ResetStaticData() {
138 Lock Watchdog::static_lock_; // Lock for access of static data...
140 TimeTicks Watchdog::last_debugged_alarm_time_ = TimeTicks();
142 TimeDelta Watchdog::last_debugged_alarm_delay_;