Chromium Code Reviews| Index: base/threading/platform_thread_win.cc |
| diff --git a/base/threading/platform_thread_win.cc b/base/threading/platform_thread_win.cc |
| index aeaa7c7a720e70886a76bedad41c25be073b41df..395fc9e20173ad00797c85248584a9d7d1826d7d 100644 |
| --- a/base/threading/platform_thread_win.cc |
| +++ b/base/threading/platform_thread_win.cc |
| @@ -206,7 +206,7 @@ bool PlatformThread::CreateNonJoinable(size_t stack_size, Delegate* delegate) { |
| // static |
| void PlatformThread::Join(PlatformThreadHandle thread_handle) { |
| - DCHECK(thread_handle.handle_); |
| + DCHECK(thread_handle.platform_handle()); |
| // TODO(willchan): Enable this check once I can get it to work for Windows |
| // shutdown. |
| // Joining another thread may block the current thread for a long time, since |
| @@ -218,17 +218,16 @@ void PlatformThread::Join(PlatformThreadHandle thread_handle) { |
| // Wait for the thread to exit. It should already have terminated but make |
| // sure this assumption is valid. |
| - DWORD result = WaitForSingleObject(thread_handle.handle_, INFINITE); |
| + DWORD result = WaitForSingleObject(thread_handle.platform_handle(), INFINITE); |
| if (result != WAIT_OBJECT_0) { |
| // Debug info for bug 127931. |
| DWORD error = GetLastError(); |
| debug::Alias(&error); |
| debug::Alias(&result); |
| - debug::Alias(&thread_handle.handle_); |
| CHECK(false); |
|
Takashi Toyoshima
2015/06/02 08:57:08
No one work on this bug now, and the bug 127931 wa
gab
2015/06/02 14:15:41
I think this should be okay since |thread_handle|
|
| } |
| - CloseHandle(thread_handle.handle_); |
| + CloseHandle(thread_handle.platform_handle()); |
| } |
| // static |
| @@ -259,7 +258,7 @@ void PlatformThread::SetThreadPriority(PlatformThreadHandle handle, |
| #ifndef NDEBUG |
| const BOOL success = |
| #endif |
| - ::SetThreadPriority(handle.handle_, desired_priority); |
| + ::SetThreadPriority(handle.platform_handle(), desired_priority); |
| DPLOG_IF(ERROR, !success) << "Failed to set thread priority to " |
| << desired_priority; |
| } |
| @@ -268,7 +267,7 @@ void PlatformThread::SetThreadPriority(PlatformThreadHandle handle, |
| ThreadPriority PlatformThread::GetThreadPriority(PlatformThreadHandle handle) { |
| DCHECK(!handle.is_null()); |
| - int priority = ::GetThreadPriority(handle.handle_); |
| + int priority = ::GetThreadPriority(handle.platform_handle()); |
| switch (priority) { |
| case THREAD_PRIORITY_LOWEST: |
| return ThreadPriority::BACKGROUND; |