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

Unified Diff: synchronization/condition_variable.h

Issue 2045223003: Update to Chromium //base at Chromium commit 82baa9afc6620c68cb2168f20bb65e77e3e57f0a. (Closed) Base URL: https://github.com/domokit/base.git@master
Patch Set: Created 4 years, 6 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 | « sync_socket.h ('k') | synchronization/condition_variable_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: synchronization/condition_variable.h
diff --git a/synchronization/condition_variable.h b/synchronization/condition_variable.h
index 5d8507d43730dbca5793d65c8a9caa582c193d2b..91e4d1350d619ffcd8f44fb108368737e7b3366c 100644
--- a/synchronization/condition_variable.h
+++ b/synchronization/condition_variable.h
@@ -73,6 +73,7 @@
#include "base/base_export.h"
#include "base/basictypes.h"
+#include "base/logging.h"
#include "base/synchronization/lock.h"
namespace base {
@@ -104,7 +105,7 @@ class BASE_EXPORT ConditionVariable {
#elif defined(OS_POSIX)
pthread_cond_t condition_;
pthread_mutex_t* user_mutex_;
-#if !defined(NDEBUG) || defined(DCHECK_ALWAYS_ON)
+#if DCHECK_IS_ON()
base::Lock* user_lock_; // Needed to adjust shadow lock state on wait.
#endif
« no previous file with comments | « sync_socket.h ('k') | synchronization/condition_variable_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698