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

Unified Diff: base/threading/platform_thread_win.cc

Issue 10398060: Base: Crash the process if we are not able to join threads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/threading/platform_thread_win.cc
===================================================================
--- base/threading/platform_thread_win.cc (revision 137046)
+++ base/threading/platform_thread_win.cc (working copy)
@@ -181,7 +181,13 @@
// Wait for the thread to exit. It should already have terminated but make
// sure this assumption is valid.
DWORD result = WaitForSingleObject(thread_handle, INFINITE);
- DCHECK_EQ(WAIT_OBJECT_0, result);
+ if (result != WAIT_OBJECT_0) {
willchan no longer on Chromium 2012/05/16 20:15:50 Should we alias &result too?
+ // Debug info for bug 127931.
+ DWORD error = GetLastError();
+ debug::Alias(&error);
+ debug::Alias(&thread_handle);
+ CHECK(false) << "Failed to wait for thread";
willchan no longer on Chromium 2012/05/16 20:15:50 I'd be inclined to ditch the string since it bloat
+ }
CloseHandle(thread_handle);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698