Watchdog - Added a JOINABLE state to avoid StartupTimebomb
blocking UI thread during Watchdog thread join.
StartupTimebomb deletes the startup_watchdog thread only if
it is joinable. This fixes the case when UI thread is blocked
until watchdog thread finishes generating the dump. StartupTimebomb
keeps calling IsJoinable on startup_watchdog thread every 10 secs
until it is joinable until it is deleted.
The delete method calls Cleanup to set the state to SHUTDOWN
for backward compatability.
BUG=110055
R=jar
TEST=base unit tests and browser ui and unit tests.
Review URL: http://codereview.chromium.org/9173002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118209 0039d316-1c4b-4281-b951-d872f2087c98
CrOS-Libchrome-Original-Commit: 75715c3104c131d1a0ea811afd4165f9d1412f80
2 files changed