diff options
author | rtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-23 07:27:02 +0000 |
---|---|---|
committer | rtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-23 07:27:02 +0000 |
commit | 3617ea94a4f7e711880fe95529d6cad26a98b86f (patch) | |
tree | 40a2d4bacf1b9260db1dcc98de9b70dd9a54df96 /content/browser/browser_thread.h | |
parent | 6b7fcb4cc083332fc1708a8d6075fa3a06096910 (diff) | |
download | chromium_src-3617ea94a4f7e711880fe95529d6cad26a98b86f.zip chromium_src-3617ea94a4f7e711880fe95529d6cad26a98b86f.tar.gz chromium_src-3617ea94a4f7e711880fe95529d6cad26a98b86f.tar.bz2 |
First cut at a WATCHDOG thread that monitors threads for their
responsiveness by sending a ping message to them. Watched Threads
respond by sending a pong message to WATCHDOG thread.
WACTHDOG thread collects statistics for response time.
BUG=71378
TEST=browser_thread_unit_test and thread_watcher_unittest. Starting
and stopping of browser.
Review URL: http://codereview.chromium.org/6392018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75723 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/browser_thread.h')
-rw-r--r-- | content/browser/browser_thread.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/content/browser/browser_thread.h b/content/browser/browser_thread.h index d5e4473..b0ed765 100644 --- a/content/browser/browser_thread.h +++ b/content/browser/browser_thread.h @@ -43,6 +43,9 @@ class BrowserThread : public base::Thread { // The main thread in the browser. UI, + // This is the thread that watches all browser threads. + WATCHDOG, + // This is the thread that interacts with the database. DB, |