Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(729)

Side by Side Diff: base/threading/watchdog.cc

Issue 6001010: Move platform_thread to base/threading and put in the base namespace. I left ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/threading/watchdog.h ('k') | base/threading/watchdog_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/threading/watchdog.h" 5 #include "base/threading/watchdog.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/platform_thread.h" 9 #include "base/threading/platform_thread.h"
10 10
11 namespace base { 11 namespace base {
12 12
13 // Start thread running in a Disarmed state. 13 // Start thread running in a Disarmed state.
14 Watchdog::Watchdog(const TimeDelta& duration, 14 Watchdog::Watchdog(const TimeDelta& duration,
15 const std::string& thread_watched_name, 15 const std::string& thread_watched_name,
16 bool enabled) 16 bool enabled)
17 : init_successful_(false), 17 : init_successful_(false),
18 lock_(), 18 lock_(),
19 condition_variable_(&lock_), 19 condition_variable_(&lock_),
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 } 135 }
136 136
137 // static 137 // static
138 Lock Watchdog::static_lock_; // Lock for access of static data... 138 Lock Watchdog::static_lock_; // Lock for access of static data...
139 // static 139 // static
140 TimeTicks Watchdog::last_debugged_alarm_time_ = TimeTicks(); 140 TimeTicks Watchdog::last_debugged_alarm_time_ = TimeTicks();
141 // static 141 // static
142 TimeDelta Watchdog::last_debugged_alarm_delay_; 142 TimeDelta Watchdog::last_debugged_alarm_delay_;
143 143
144 } // namespace base 144 } // namespace base
OLDNEW
« no previous file with comments | « base/threading/watchdog.h ('k') | base/threading/watchdog_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698