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

Unified Diff: webrtc/system_wrappers/source/thread_win.cc

Issue 1335923002: Add RTC_ prefix to (D)CHECKs and related macros. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Created 5 years, 3 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 | « webrtc/system_wrappers/source/thread_posix.cc ('k') | webrtc/system_wrappers/source/tick_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « webrtc/system_wrappers/source/thread_posix.cc ('k') | webrtc/system_wrappers/source/tick_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698