Commit 5a442809 authored by rvargas@google.com's avatar rvargas@google.com

Base: Crash the process if we are not able to join threads.

BUG=127931
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10398060

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137541 0039d316-1c4b-4281-b951-d872f2087c98
parent 587b631f
...@@ -181,7 +181,14 @@ void PlatformThread::Join(PlatformThreadHandle thread_handle) { ...@@ -181,7 +181,14 @@ void PlatformThread::Join(PlatformThreadHandle thread_handle) {
// Wait for the thread to exit. It should already have terminated but make // Wait for the thread to exit. It should already have terminated but make
// sure this assumption is valid. // sure this assumption is valid.
DWORD result = WaitForSingleObject(thread_handle, INFINITE); DWORD result = WaitForSingleObject(thread_handle, INFINITE);
DCHECK_EQ(WAIT_OBJECT_0, result); if (result != WAIT_OBJECT_0) {
// Debug info for bug 127931.
DWORD error = GetLastError();
debug::Alias(&error);
debug::Alias(&result);
debug::Alias(&thread_handle);
CHECK(false);
}
CloseHandle(thread_handle); CloseHandle(thread_handle);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment