Index: webrtc/system_wrappers/source/thread_win.cc |
diff --git a/webrtc/system_wrappers/source/thread_win.cc b/webrtc/system_wrappers/source/thread_win.cc |
index 7c6bd89547c918f56c068d06dfa3addf9cac5517..2773f7ef772f3b18db4c585c01583cef22e4a4df 100644 |
--- a/webrtc/system_wrappers/source/thread_win.cc |
+++ b/webrtc/system_wrappers/source/thread_win.cc |
@@ -32,12 +32,12 @@ ThreadWindows::ThreadWindows(ThreadRunFunction func, void* obj, |
stop_(false), |
thread_(NULL), |
name_(thread_name ? thread_name : "webrtc") { |
- DCHECK(func); |
+ RTC_DCHECK(func); |
} |
ThreadWindows::~ThreadWindows() { |
- DCHECK(main_thread_.CalledOnValidThread()); |
- DCHECK(!thread_); |
+ RTC_DCHECK(main_thread_.CalledOnValidThread()); |
+ RTC_DCHECK(!thread_); |
} |
// static |
@@ -52,8 +52,8 @@ DWORD WINAPI ThreadWindows::StartThread(void* param) { |
} |
bool ThreadWindows::Start() { |
- DCHECK(main_thread_.CalledOnValidThread()); |
- DCHECK(!thread_); |
+ RTC_DCHECK(main_thread_.CalledOnValidThread()); |
+ RTC_DCHECK(!thread_); |
stop_ = false; |
@@ -64,7 +64,7 @@ bool ThreadWindows::Start() { |
thread_ = ::CreateThread(NULL, 1024 * 1024, &StartThread, this, |
STACK_SIZE_PARAM_IS_A_RESERVATION, &thread_id); |
if (!thread_ ) { |
- DCHECK(false) << "CreateThread failed"; |
+ RTC_DCHECK(false) << "CreateThread failed"; |
return false; |
} |
@@ -72,7 +72,7 @@ bool ThreadWindows::Start() { |
} |
bool ThreadWindows::Stop() { |
- DCHECK(main_thread_.CalledOnValidThread()); |
+ RTC_DCHECK(main_thread_.CalledOnValidThread()); |
if (thread_) { |
// Set stop_ to |true| on the worker thread. |
QueueUserAPC(&RaiseFlag, thread_, reinterpret_cast<ULONG_PTR>(&stop_)); |
@@ -85,7 +85,7 @@ bool ThreadWindows::Stop() { |
} |
bool ThreadWindows::SetPriority(ThreadPriority priority) { |
- DCHECK(main_thread_.CalledOnValidThread()); |
+ RTC_DCHECK(main_thread_.CalledOnValidThread()); |
return thread_ && SetThreadPriority(thread_, priority); |
} |