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

Unified Diff: webrtc/base/messagequeue.cc

Issue 2620303003: Replace ASSERT by RTC_DCHECK in all non-test code. (Closed)
Patch Set: Address final nits. Created 3 years, 11 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/base/macutils.cc ('k') | webrtc/base/natserver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/messagequeue.cc
diff --git a/webrtc/base/messagequeue.cc b/webrtc/base/messagequeue.cc
index 503d5aff966bde3354352173891fe93e91350ce6..1f0eab6efb8408c8eedf1f13b9ea4d1152b525d6 100644
--- a/webrtc/base/messagequeue.cc
+++ b/webrtc/base/messagequeue.cc
@@ -30,7 +30,7 @@ class SCOPED_LOCKABLE DebugNonReentrantCritScope {
EXCLUSIVE_LOCK_FUNCTION(cs)
: cs_(cs), locked_(locked) {
cs_->Enter();
- ASSERT(!*locked_);
+ RTC_DCHECK(!*locked_);
*locked_ = true;
}
@@ -329,7 +329,7 @@ bool MessageQueue::Get(Message *pmsg, int cmsWait, bool process_io) {
}
// If this was a dispose message, delete it and skip it.
if (MQID_DISPOSE == pmsg->message_id) {
- ASSERT(NULL == pmsg->phandler);
+ RTC_DCHECK(NULL == pmsg->phandler);
delete pmsg->pdata;
*pmsg = Message();
continue;
« no previous file with comments | « webrtc/base/macutils.cc ('k') | webrtc/base/natserver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698