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
tree: 302e650754618a8d4a72c258f4f610f30c042d1a
  1. base/
  2. build/
  3. dbus/
  4. ipc/
  5. testing/
  6. third_party/