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

Unified Diff: base/synchronization/condition_variable.h

Issue 403803004: base: Enable lock dchecks with dchecks_always_on (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix condition variable too Created 6 years, 5 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 | « no previous file | base/synchronization/condition_variable_posix.cc » ('j') | base/synchronization/lock.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/synchronization/condition_variable.h
diff --git a/base/synchronization/condition_variable.h b/base/synchronization/condition_variable.h
index 4f744f80b27e54bfdee4c59e10d74c70e4c40273..5d8507d43730dbca5793d65c8a9caa582c193d2b 100644
--- a/base/synchronization/condition_variable.h
+++ b/base/synchronization/condition_variable.h
@@ -104,7 +104,7 @@ class BASE_EXPORT ConditionVariable {
#elif defined(OS_POSIX)
pthread_cond_t condition_;
pthread_mutex_t* user_mutex_;
-#if !defined(NDEBUG)
+#if !defined(NDEBUG) || defined(DCHECK_ALWAYS_ON)
base::Lock* user_lock_; // Needed to adjust shadow lock state on wait.
#endif
« no previous file with comments | « no previous file | base/synchronization/condition_variable_posix.cc » ('j') | base/synchronization/lock.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698